summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it_debug.class b/it_debug.class
index 98f8484..d851ecc 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -77,7 +77,7 @@ static function debug_backtrace($p = []) {
if (--$p['levels'] == 0)
break;
}
- return $result;
+ return (array)$result;
}
/**
@@ -229,8 +229,8 @@ static function backtrace($p = array())
{
foreach ($frames as $frame)
if ($tracesize < 100000 && ($tracesize += strlen(print_r($frame, true))) < 100000) # save mem
- $frames[] = $frame;
- $result = $frames ? print_r($frames, true) . "\n" : null;
+ $outframes[] = $frame;
+ $result = $outframes ? print_r($outframes, true) . "\n" : null;
}
else if ($p['format'] == "medium")
{