From e226ebe684c4ad2b4e54475e058c9dd64bc00e81 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 28 Apr 2017 10:29:50 +0200 Subject: [PATCH] custom_action : Use call_user_func_array() instead of call_user_func() to permit pass arg by reference --- public_html/custom_action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/custom_action.php b/public_html/custom_action.php index c886bb5f..bf9870f0 100644 --- a/public_html/custom_action.php +++ b/public_html/custom_action.php @@ -44,7 +44,7 @@ if(LSsession :: startLSsession()) { if (isset($_GET['valid']) || $config['noConfirmation']) { $objectname=$object -> getDisplayName(); LStemplate :: assign('pagetitle',$title.' : '.$objectname); - if (call_user_func($config['function'],$object)) { + if (call_user_func_array($config['function'],array(&$object))) { if ($config['disableOnSuccessMsg']!=true) { if ($config['onSuccessMsgFormat']) { LSsession :: addInfo(getFData(__($config['onSuccessMsgFormat']),$objectname));