diff --git a/core/user.class.php b/core/user.class.php index 65bb9c83..40f8b07b 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -60,7 +60,7 @@ class User { $this->class = $_user_classes[$row["class"]]; } else { - throw SCoreException("User '{$this->name}' has invalid class '{$row["class"]}'"); + throw new SCoreException("User '{$this->name}' has invalid class '{$row["class"]}'"); } }