User() improvement
This commit is contained in:
parent
a9a71045c0
commit
edbd6e2b9d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user