From 70557422c2d999b85fd7ba45718da357f022fcfd Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Sep 2011 18:58:43 -0400 Subject: Fix 3 bugs (stray * in SQL, typo in variable name, a place where isLoggedIn() was still being called on the DB --- src/models/Auth.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/models') diff --git a/src/models/Auth.class.php b/src/models/Auth.class.php index 3aba0f3..f2c9120 100644 --- a/src/models/Auth.class.php +++ b/src/models/Auth.class.php @@ -46,11 +46,10 @@ class Auth { return $type; } protected function setType($type) { - $logged_in_uid = $this->db->isLoggedIn(); + $logged_in_uid = Login::isLoggedIn(); $logged_in_obj = Auth::getObj($logged_in_uid); - $is_admin = $logged_in_obj->isAdmin(); + $is_admin = $logged_in_obj->isAdmin(); if (!$is_admin) return false; - return $this->db->setStatus($this->uid, $type); } public function isUser() { -- cgit v1.2.3-2-g168b