Skip to content

Commit

Permalink
Correctly call function with the parameter by reference (#19233)
Browse files Browse the repository at this point in the history
  • Loading branch information
csthomas authored and Michael Babker committed Feb 13, 2018
1 parent 871abf6 commit 45ff709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/legacy/error/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ public static function handleCallback(&$error, $options)
{
JLog::add('JError::handleCallback() is deprecated.', JLog::WARNING, 'deprecated');

return call_user_func($options, $error);
return call_user_func_array($options, array(&$error));
}

/**
Expand Down

0 comments on commit 45ff709

Please sign in to comment.