From 5d017f60c39c7e3a3e6bb618a0bef6328cebbf39 Mon Sep 17 00:00:00 2001 From: xisi Date: Wed, 29 Jan 2014 13:28:38 -0500 Subject: [PATCH] how this worked before is beyond me --- public/include/classes/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index 138cb6dc..8e4c0e70 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -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;