"PHP5.3 fix: call_user_func_array($callback,null) 2. parameter has to be array

If called in php5.2, $callback is called with no argument, in php5.3 above warning is issued and $callback is NOT called
--> stoping some xajax calls from fmail in 1.6.002"
This commit is contained in:
Ralf Becker 2009-08-22 16:42:11 +00:00
parent 3a6e839a14
commit 6d78b5ce58

View File

@ -145,7 +145,7 @@ function doXMLHTTP()
$ajaxClass =& CreateObject($appName.'.'.$className);
$argList = $GLOBALS['egw']->translation->convert($argList, 'utf-8');
return call_user_func_array(array(&$ajaxClass, $functionName), $argList );
return call_user_func_array(array(&$ajaxClass, $functionName), (array)$argList );
}
$xajax = new xajax($_SERVER['PHP_SELF']);