From 45ff709b8c3812c06ebbab08e530fa045584a2be Mon Sep 17 00:00:00 2001 From: Tomasz Narloch Date: Tue, 13 Feb 2018 01:03:58 +0100 Subject: [PATCH] Correctly call function with the parameter by reference (#19233) --- libraries/legacy/error/error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/legacy/error/error.php b/libraries/legacy/error/error.php index 85bfa736b2c08..9e79d0a94cd09 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)); } /**