From e523af554f89bef2b11f95433e7a561581d2614b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 10 Sep 2008 18:54:34 +0000 Subject: Fix warning if no paramenter names could be found and fix line offset for cli --- it_debug.class | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/it_debug.class b/it_debug.class index 9cafd3b..95a414a 100644 --- a/it_debug.class +++ b/it_debug.class @@ -66,9 +66,6 @@ function srcline($stackoffs = 0) if (!isset($GLOBALS['it_debug::dump source'][$file])) $GLOBALS['it_debug::dump source'][$file] = file($file); - if (!$_SERVER['REMOTE_ADDR'] && substr($GLOBALS['it_debug::dump source'][$file][0], 0, 2) == "#!") - $line++; - return $GLOBALS['it_debug::dump source'][$file][$line-1]; } @@ -100,6 +97,7 @@ function dump($args) $paramtokens = token_get_all("