Project

General

Profile

Bug #19867 » 10205.diff

Administrator Admin, 2009-01-21 23:47

View differences:

t3lib/class.t3lib_userauth.php (working copy)
list($count) = $GLOBALS['TYPO3_DB']->sql_fetch_row($dbres);
$GLOBALS['TYPO3_DB']->sql_free_result($dbres);
}
// hotfix for #10205
if ($this->loginType == 'FE') {
$dbres = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'COUNT(hash)',
'fe_session_data',
'hash=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($id, 'fe_session_data')
);
if ($dbres !== false) {
list($countSessionData) = $GLOBALS['TYPO3_DB']->sql_fetch_row($dbres);
$GLOBALS['TYPO3_DB']->sql_free_result($dbres);
$count = $count || $countSessionData;
}
}
return (($count ? true : false));
}
(3-3/8)