Bugfix
This commit is contained in:
parent
cd1792c130
commit
db6af95063
@ -96,7 +96,9 @@ class UserManager{
|
|||||||
$statement->bindParam(':uname', $uname, PDO::PARAM_STR);
|
$statement->bindParam(':uname', $uname, PDO::PARAM_STR);
|
||||||
$statement->execute();
|
$statement->execute();
|
||||||
|
|
||||||
return $statement->fetch()[0];
|
$row = $statement->fetch();
|
||||||
|
if ($row == false) return 0;
|
||||||
|
return $row[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUsergroupNames($uname){
|
public function getUsergroupNames($uname){
|
||||||
|
Loading…
Reference in New Issue
Block a user