avoid warning in php5.3, if argument is an array

This commit is contained in:
Ralf Becker 2009-11-30 14:39:38 +00:00
parent 2a1d7079ad
commit 80774a3468

View File

@ -1244,7 +1244,7 @@ function function_backtrace($remove=0)
{ {
$ret[] = (isset($level['class'])?$level['class'].$level['type']:'').$level['function']. $ret[] = (isset($level['class'])?$level['class'].$level['type']:'').$level['function'].
(!$level['class'] && !is_object($level['args'][0]) && $level['function'] != 'unserialize' ? (!$level['class'] && !is_object($level['args'][0]) && $level['function'] != 'unserialize' ?
'('.substr(str_replace(EGW_SERVER_ROOT,'',$level['args'][0]),0,64).')' : ''); '('.substr(str_replace(EGW_SERVER_ROOT,'',(string)$level['args'][0]),0,64).')' : '');
} }
} }
if (is_array($ret)) if (is_array($ret))