custom_action : Use call_user_func_array() instead of call_user_func() to permit...
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 28 Apr 2017 08:29:50 +0000 (10:29 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 28 Apr 2017 08:29:50 +0000 (10:29 +0200)
public_html/custom_action.php

index c886bb5..bf9870f 100644 (file)
@@ -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));