[BUGFIX] Call callUserFunction with dummy-parameter as 3rd argument
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 21 Nov 2011 00:50:13 +0000 (01:50 +0100)
committerOliver Hader <oliver@typo3.org>
Mon, 21 Nov 2011 21:11:52 +0000 (22:11 +0100)
t3lib_div::callUserFunction() wants to use 3rd argument by
reference. Passing NULL directly there results in an error
But a dummy-variable can be passed (as done in other places
in the core, for example t3lib/class.t3lib_befunc.php).

Change-Id: I4ea437116aecfbb4e28cc09c744aa552e7c6ae94
Fixes: #27800
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/6758
Reviewed-by: Marco Bresch
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/workspaces/Classes/Service/Workspaces.php

index 4c05e7e..8365b5b 100644 (file)
@@ -550,7 +550,8 @@ class Tx_Workspaces_Service_Workspaces implements t3lib_Singleton {
                        if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['workspaces']['viewSingleRecord'])) {
                                $_params = array('table' => $table, 'uid' => $uid, 'record' => $record);
                                $_funcRef = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['workspaces']['viewSingleRecord'];
-                               $viewUrl = t3lib_div::callUserFunction($_funcRef, $_params, NULL);
+                               $null = NULL;
+                               $viewUrl = t3lib_div::callUserFunction($_funcRef, $_params, $null);
                        }
                }
                return $viewUrl;