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:
parent
c8e2e5415a
commit
d23d54d85f
|
@ -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'))) {
|
||||
|
|
Loading…
Reference in a new issue