summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 9a4cf86..9dc1960 100644
--- a/it.class
+++ b/it.class
@@ -276,7 +276,7 @@ static function error($p = array(), $extra = null)
if (!$p['omitdebuginfo'])
{
- foreach (($trace ? debug_backtrace() : array()) as $level => $stackframe)
+ foreach (($trace ? ($p['trace'] ?: debug_backtrace()) : []) as $level => $stackframe)
if ($level >= $p['backtraceskip'] && $tracesize < 100000 && ($tracesize += strlen(print_r($stackframe, true))) < 100000) # save mem
$stackframes[] = $stackframe;