summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-05 18:58:43 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-05 18:58:43 -0400
commit70557422c2d999b85fd7ba45718da357f022fcfd (patch)
treec3824157a49d46252d6c969a525d9b885c6f5440 /src/models
parentc81e480daaa233c35fec262e9907d35179db5e86 (diff)
Fix 3 bugs (stray * in SQL, typo in variable name, a place where isLoggedIn() was still being called on the DB
Diffstat (limited to 'src/models')
-rw-r--r--src/models/Auth.class.php5
1 files changed, 2 insertions, 3 deletions
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() {