fixed user level type

This commit is contained in:
Tony Yang 2019-06-30 00:11:15 +08:00
parent e80741391f
commit 60501428ce
Signed by: t510599
GPG Key ID: D88388851C28715D

View File

@ -23,7 +23,7 @@ class User {
$data = $query['row']; $data = $query['row'];
$this->username = $data["username"]; $this->username = $data["username"];
$this->name = $data['name']; $this->name = $data['name'];
$this->level = $data['level']; $this->level = intval($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 if ($username != ""){ } else if ($username != ""){