diff --git a/libraries/legacy/error/error.php b/libraries/legacy/error/error.php index 105abb2d00015..ecfbc764bf71f 100644 --- a/libraries/legacy/error/error.php +++ b/libraries/legacy/error/error.php @@ -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)); } /**