Project

General

Profile

Bug #19867 » bug_10205_v2_trunk.diff

Administrator Admin, 2009-01-22 18:37

View differences:

t3lib/class.t3lib_userauth.php (working copy)
* @return boolean
*/
function isExistingSessionRecord($id) {
$count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
'ses_id',
$this->session_table,
'ses_id=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($id, $this->session_table)
);
return (($count ? true : false));
$count = false;
if ($this->lifetime == 0) {
// Pass if the lifetime is 0 (= there is no such information in the session table)
$count = true;
} else {
$dbres = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'COUNT(ses_id)',
$this->session_table,
'ses_id=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($id, $this->session_table)
);
if ($dbres !== false) {
list($count) = $GLOBALS['TYPO3_DB']->sql_fetch_row($dbres);
$GLOBALS['TYPO3_DB']->sql_free_result($dbres);
}
}
return ($count ? true : false);
}
(4-4/8)