how this worked before is beyond me

This commit is contained in:
xisi 2014-01-29 13:28:38 -05:00
parent ae47437ab7
commit 5d017f60c3

View File

@ -814,7 +814,7 @@ class User extends Base {
**/
public function isAuthenticated($logout=true) {
$this->debug->append("STA " . __METHOD__, 4);
if (@$_SESSION['AUTHENTICATED'] == true &&
if (@$_SESSION['AUTHENTICATED'] == '1' &&
!$this->isLocked($_SESSION['USERDATA']['id']) &&
$this->getUserIp($_SESSION['USERDATA']['id']) == $_SERVER['REMOTE_ADDR']
) return true;