summaryrefslogtreecommitdiff
path: root/debug.class
diff options
context:
space:
mode:
authorUrban Müller2007-04-24 13:24:38 +0000
committerUrban Müller2007-04-24 13:24:38 +0000
commit3da219fb37c3143f83a38d60f2e7b4673a83a95f (patch)
tree10f22207ceed39c41e7fa75193a4145a88e0aa38 /debug.class
parentf698a543363d4e106b77178c501785dbe3517331 (diff)
downloaditools-3da219fb37c3143f83a38d60f2e7b4673a83a95f.tar.gz
itools-3da219fb37c3143f83a38d60f2e7b4673a83a95f.tar.bz2
itools-3da219fb37c3143f83a38d60f2e7b4673a83a95f.zip
different idiocies in php 5
Diffstat (limited to 'debug.class')
-rw-r--r--debug.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug.class b/debug.class
index 1be631b..956b0d0 100644
--- a/debug.class
+++ b/debug.class
@@ -108,8 +108,8 @@ function dump()
$line = $stack[2]['line'];
$file = $stack[2]['file'];
- if (!$_SERVER['REMOTE_ADDR'] && preg_match('/class/', $file))
- $line--;
+ if (!$_SERVER['REMOTE_ADDR'] && !preg_match('/class/', $file))
+ $line++;
if (ereg('(csv|txt|gif|jpg)', $_SERVER['PHP_SELF']) || !ereg('Mozilla', $_SERVER['HTTP_USER_AGENT']))
$plain = 1;