From 29a3ffb99435827d5a7ea6886ac22bd2ee18d593 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 27 Oct 2011 19:44:10 -0400 Subject: I think this fixes everything, but it now depends on PHP 5.3+ The introduction of the dependency on PHP 5.3 is that lib/Singleton.class uses `get_called_class()' --- src/models/Auth.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models/Auth.class.php') diff --git a/src/models/Auth.class.php b/src/models/Auth.class.php index bb35be5..39f627e 100644 --- a/src/models/Auth.class.php +++ b/src/models/Auth.class.php @@ -13,7 +13,7 @@ class Auth extends Model { private static $users = array(); public static function getInstance($uid) { if (!isset(self::$users[$uid])) { - $type = Database::getInstance()->getStatus($uid)<3; + $type = Database::getInstance()->getStatus($uid); switch ($type) { case 0: // unactivated user case 1: // user -- cgit v1.2.3-54-g00ecf