From 3da219fb37c3143f83a38d60f2e7b4673a83a95f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 24 Apr 2007 13:24:38 +0000 Subject: different idiocies in php 5 --- debug.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug.class') 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; -- cgit v1.2.3