1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00

fix for PHP 5.3

This commit is contained in:
Mzhelskiy Maxim 2010-03-30 20:28:29 +00:00
parent c8e2e5415a
commit d23d54d85f

View file

@ -355,7 +355,11 @@ class Engine extends Object {
if (array_key_exists('delegate_result',$aResultHook)) {
$result=$aResultHook['delegate_result'];
} else {
$result=call_user_func_array(array($oModule,$sMethod),$aArgs);
$aArgsRef=array();
foreach ($aArgs as $key=>$v) {
$aArgsRef[]=&$aArgs[$key];
}
$result=call_user_func_array(array($oModule,$sMethod),$aArgsRef);
}
if (!in_array($sModuleName,array('plugin','hook'))) {