diff --git a/core/userclass.class.php b/core/userclass.class.php index a8e324c3..17c9f7d2 100644 --- a/core/userclass.class.php +++ b/core/userclass.class.php @@ -10,9 +10,12 @@ class UserClass { global $_user_classes; $this->name = $name; - $this->parent = $parent; $this->abilities = $abilities; + if(!is_null($parent)) { + $this->parent = $_user_classes[$parent]; + } + $_user_classes[$name] = $this; }