* Fix indention (non-functional)
authorMichael Stucki <michael.stucki@typo3.org>
Fri, 23 Jan 2009 20:45:16 +0000 (20:45 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 23 Jan 2009 20:45:16 +0000 (20:45 +0000)
* Add phpdoc comments to t3lib_userAuth::isExistingSessionRecord()

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4835 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_userauth.php

index 3fbce4e..089e65a 100755 (executable)
@@ -228,8 +228,8 @@ class t3lib_userAuth {
                        // If new session or client tries to fix session...
                if (!$id || !$this->isExistingSessionRecord($id))       {
                                // New random session-$id is made
-               $id = substr(md5(uniqid('').getmypid()),0,$this->hash_length);
-                       // New session
+                       $id = substr(md5(uniqid('').getmypid()),0,$this->hash_length);
+                               // New session
                        $this->newSessionID = TRUE;
                }
 
@@ -760,7 +760,8 @@ class t3lib_userAuth {
         * Determine whether there's an according session record to a given session_id
         * in the database. Don't care if session record is still valid or not.
         *
-        * @return boolean
+        * @param       integer         Claimed Session ID
+        * @return      boolean         Returns true if a corresponding session was found in the database
         */
        function isExistingSessionRecord($id) {
                $count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows(