Fixed #11089: Fixing the built-in shopping basket (Thanks to Mathias Schreiber)
authorBenni Mack <benni.mack@typo3.org>
Mon, 18 Jan 2010 16:04:33 +0000 (16:04 +0000)
committerBenni Mack <benni.mack@typo3.org>
Mon, 18 Jan 2010 16:04:33 +0000 (16:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6803 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index fd7ce5d..2cf453a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-18  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed #11089: Fixing the built-in shopping basket (Thanks to Mathias Schreiber)
+
 2010-01-17  Christian Kuhn  <lolli@schwarzbu.ch>
 
        * Added feature #13192: Allow different timestamp as optional parameter in constructor of class tx_scheduler_croncmd
index bd1b6b6..1128c56 100644 (file)
@@ -491,8 +491,10 @@ class tslib_feUserAuth extends t3lib_userAuth {
         */
        function record_registration($recs,$maxSizeOfSessionData=0)     {
 
-                       // 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)      {
+                       // 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) {
                        if ($recs['clear_all']) {
                                $this->setKey('ses', 'recs', array());
                        }