User() improvement

This commit is contained in:
Tony Yang
2019-06-02 03:34:13 +08:00
parent a9a71045c0
commit edbd6e2b9d

View File

@@ -26,7 +26,7 @@ class User {
$this->level = $data['level']; $this->level = $data['level'];
$this->muted = ($data['muted'] == 1 ? true : false); $this->muted = ($data['muted'] == 1 ? true : false);
$this->email = $data['email']; $this->email = $data['email'];
} else { } else if ($username != ""){
throw new NoUserException($username); throw new NoUserException($username);
} }