diff --git a/include/user.php b/include/user.php index 827cb8c..b4f8830 100644 --- a/include/user.php +++ b/include/user.php @@ -26,7 +26,7 @@ class User { $this->level = $data['level']; $this->muted = ($data['muted'] == 1 ? true : false); $this->email = $data['email']; - } else { + } else if ($username != ""){ throw new NoUserException($username); }