Skip to content

Commit

Permalink
bug 3023: Fatal error when using trigger_notify/trigger_change on PHP…
Browse files Browse the repository at this point in the history
… < 5.3

git-svn-id: http://piwigo.org/svn/trunk@26846 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jan 18, 2014
1 parent 07e1d14 commit c1b07f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/functions_plugins.inc.php
Expand Up @@ -252,7 +252,8 @@ function remove_event_handler($event, $func,
*/
function trigger_change($event, $data=null)
{
return call_user_func_array('trigger_event', func_get_args());
$args = func_get_args();
return call_user_func_array('trigger_event', $args);
}

/**
Expand Down Expand Up @@ -302,7 +303,8 @@ function trigger_event($event, $data=null)
*/
function trigger_notify($event)
{
return call_user_func_array('trigger_action', func_get_args());
$args = func_get_args();
return call_user_func_array('trigger_action', $args);
}

/**
Expand Down

0 comments on commit c1b07f9

Please sign in to comment.