Fixed bug #4367: Reset recs with clear_all should reset as array, not as string ...
authorBenni Mack <benni.mack@typo3.org>
Sat, 28 Feb 2009 19:42:23 +0000 (19:42 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sat, 28 Feb 2009 19:42:23 +0000 (19:42 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5106 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_feuserauth.php

index 68df8da..f9c2cc2 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-28  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed bug #4367: Reset recs with clear_all should reset as array, not as string (Thanks to Christian Kuhn)
+
 2009-02-27  Jeff Segars  <jeff@webempoweredchurch.org>
 
        * Fixed bug #10372: Clean up frontend editing actions
index 1f7bd60..6a6b2f5 100644 (file)
@@ -464,7 +464,7 @@ class tslib_feUserAuth extends t3lib_userAuth {
                        // Storing value ONLY if there is a confirmed cookie set (->cookieID), otherwise a shellscript could easily be spamming the fe_sessions table with bogus content and thus bloat the database
                if (!$maxSizeOfSessionData || $this->cookieId===$this->id)      {
                        if ($recs['clear_all']) {
-                               $this->setKey('ses','recs','');
+                               $this->setKey('ses', 'recs', array());
                        }
                        $change=0;
                        $recs_array=$this->getKey('ses','recs');