From edbd6e2b9d73094bf0e293575a2d423e801e5c3f Mon Sep 17 00:00:00 2001 From: Tony Yang Date: Sun, 2 Jun 2019 03:34:13 +0800 Subject: [PATCH] User() improvement --- include/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }