check against the class /name/...

This commit is contained in:
Shish 2012-02-14 21:15:19 +00:00
parent ff40907fe3
commit e79d26ae8c

View file

@ -124,7 +124,7 @@ class User {
* @retval bool * @retval bool
*/ */
public function is_admin() { public function is_admin() {
return ($this->class === "admin"); return ($this->class->name === "admin");
} }
public function set_class(/*string*/ $class) { public function set_class(/*string*/ $class) {