Permalink
Browse files

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
  • Loading branch information...
mistic100 committed Jan 18, 2014
1 parent 07e1d14 commit c1b07f92307a0e3034a65e0e160667451ccfce0e
Showing with 4 additions and 2 deletions.
  1. +4 −2 include/functions_plugins.inc.php
@@ -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);
}
/**
@@ -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);
}
/**

0 comments on commit c1b07f9

Please sign in to comment.