Skip to content

Commit

Permalink
Correctly call function with the parameter by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Narloch committed Dec 30, 2017
1 parent 5e390b5 commit a2f56a6
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 a2f56a6

Please sign in to comment.