diff options
author | Urban Müller | 2007-04-24 13:24:38 +0000 |
---|---|---|
committer | Urban Müller | 2007-04-24 13:24:38 +0000 |
commit | 3da219fb37c3143f83a38d60f2e7b4673a83a95f (patch) | |
tree | 10f22207ceed39c41e7fa75193a4145a88e0aa38 | |
parent | f698a543363d4e106b77178c501785dbe3517331 (diff) | |
download | itools-3da219fb37c3143f83a38d60f2e7b4673a83a95f.tar.gz itools-3da219fb37c3143f83a38d60f2e7b4673a83a95f.tar.bz2 itools-3da219fb37c3143f83a38d60f2e7b4673a83a95f.zip |
different idiocies in php 5
-rw-r--r-- | debug.class | 4 |
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; |