"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:45:21 +00:00
parent 607dd27c48
commit f1f2b4f956

View File

@ -145,7 +145,7 @@ function doXMLHTTP()
$ajaxClass =& CreateObject($appName.'.'.$className); $ajaxClass =& CreateObject($appName.'.'.$className);
$argList = $GLOBALS['egw']->translation->convert($argList, 'utf-8'); $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']); $xajax = new xajax($_SERVER['PHP_SELF']);