From e79d26ae8c4bc92d9586fc5db14763d92c16a281 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 14 Feb 2012 21:15:19 +0000 Subject: [PATCH] check against the class /name/... --- core/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/user.class.php b/core/user.class.php index bc3d56c2..b5642d10 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -124,7 +124,7 @@ class User { * @retval bool */ public function is_admin() { - return ($this->class === "admin"); + return ($this->class->name === "admin"); } public function set_class(/*string*/ $class) {