summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_debug.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index efbf7cc..3361933 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -227,7 +227,8 @@ static function backtrace($p = array())
{
$fn = $call['file'];
$fn = (it::match('auto_prepend', $fn) ? basename(dirname(dirname($fn))) . "/" : (it::match('/(cgi|bin)/', $fn) ? basename(dirname($fn)) . "/" : "")) . basename($fn);
- $result[] = $fn . ":" . $call['line'];
+ if ($fn)
+ $result[] = $fn . ":" . $call['line'];
}
return implode(" ", (array)$result);