From 901288dde9cde0b7b72a82ec48582045ee5d1cd9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 21 Apr 2010 15:42:19 +0000 Subject: [PATCH] "adding line numbers to call-tree" --- phpgwapi/inc/common_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index e12593c7eb..b650d62f5c 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1244,7 +1244,7 @@ function function_backtrace($remove=0) if ($remove-- < 0) { $ret[] = (isset($level['class'])?$level['class'].$level['type']:'').$level['function']. - ($n > 0 ? '('.$backtrace[$n-1]['line'].')' : ''). // add line number of call + ($n > 0 && isset($backtrace[$n-1]['line']) ? ':'.$backtrace[$n-1]['line'] : ''). // add line number of call (!$level['class'] && !is_object($level['args'][0]) && $level['function'] != 'unserialize' ? '('.substr(str_replace(EGW_SERVER_ROOT,'',(string)$level['args'][0]),0,64).')' : ''); }