From: <ral...@us...> - 2009-11-30 16:02:09
|
Author: ralfbecker Date: Mon Nov 30 17:01:55 2009 New Revision: 28639 URL: http://www.egroupware.org/viewvc/egroupware?rev=28639&view=rev Log: avoid warning in php5.3, if argument is an array Modified: branches/1.6/phpgwapi/inc/common_functions.inc.php Modified: branches/1.6/phpgwapi/inc/common_functions.inc.php URL: http://www.egroupware.org/viewvc/egroupware/branches/1.6/phpgwapi/inc/common_functions.inc.php?rev=28639&r1=28638&r2=28639&view=diff ============================================================================== --- branches/1.6/phpgwapi/inc/common_functions.inc.php (original) +++ branches/1.6/phpgwapi/inc/common_functions.inc.php Mon Nov 30 17:01:55 2009 @@ -1240,7 +1240,7 @@ { $ret[] = (isset($level['class'])?$level['class'].'::':'').$level['function']. (!$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)) |