User() improvement

This commit is contained in:
Tony Yang 2019-06-02 03:34:13 +08:00
parent a9a71045c0
commit edbd6e2b9d
Signed by: t510599
GPG Key ID: D88388851C28715D

View File

@ -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);
}