[BUGFIX] Illegal string offset 'uid' in TypoScriptFrontendController 88/30588/2
authorRobert Vock <robert.vock@4wdmedia.de>
Thu, 5 Jun 2014 11:54:58 +0000 (13:54 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 5 Jun 2014 17:46:26 +0000 (19:46 +0200)
Logoff sets user property to an empty string instead of NULL. This
leads to a PHP Warning in PHP 5.4

Change-Id: Ib0e1a31dbf2fd3fcbcf1e7afd972b53d60c3ab5d
Resolves: #59364
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/30588
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php

index 6929a37..5443231 100644 (file)
@@ -1039,7 +1039,7 @@ abstract class AbstractUserAuthentication {
                }
                $this->db->exec_DELETEquery($this->session_table, 'ses_id = ' . $this->db->fullQuoteStr($this->id, $this->session_table) . '
                                                AND ses_name = ' . $this->db->fullQuoteStr($this->name, $this->session_table));
-               $this->user = '';
+               $this->user = NULL;
                // Hook for post-processing the logoff() method, requested and implemented by andreas.otto@dkd.de:
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_post_processing'])) {
                        $_params = array();