summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index 7324192..4c5af95 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -183,7 +183,7 @@ static function backtrace($p = array())
{
if (($fn = $call['file']) && !it::match($p['skipfiles'], $call['file']))
{
- if (!it::match('\.class', $call['file']) && file_get_contents($call['file'], null, null, 0, 2) == "#!")
+ if (!it::match('\.class|\.html', $call['file']) && @file_get_contents($call['file'], null, null, 0, 2) == "#!")
$call['line']++; # fix bug in php error line reporting
$fn = (it::match('auto_prepend', $fn) ? basename(dirname(dirname($fn))) . "/" : "") . basename($fn);