Skip to content

Commit c1b07f9

Browse files
committed
bug 3023: Fatal error when using trigger_notify/trigger_change on PHP < 5.3
git-svn-id: http://piwigo.org/svn/trunk@26846 68402e56-0260-453c-a942-63ccdbb3a9ee
1 parent 07e1d14 commit c1b07f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/functions_plugins.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ function remove_event_handler($event, $func,
252252
*/
253253
function trigger_change($event, $data=null)
254254
{
255-
return call_user_func_array('trigger_event', func_get_args());
255+
$args = func_get_args();
256+
return call_user_func_array('trigger_event', $args);
256257
}
257258

258259
/**
@@ -302,7 +303,8 @@ function trigger_event($event, $data=null)
302303
*/
303304
function trigger_notify($event)
304305
{
305-
return call_user_func_array('trigger_action', func_get_args());
306+
$args = func_get_args();
307+
return call_user_func_array('trigger_action', $args);
306308
}
307309

308310
/**

0 commit comments

Comments
 (0)