This commit is contained in:
Peder Bergebakken Sundt 2021-08-12 13:44:47 +02:00
parent cd1792c130
commit db6af95063

View File

@ -96,7 +96,9 @@ class UserManager{
$statement->bindParam(':uname', $uname, PDO::PARAM_STR);
$statement->execute();
return $statement->fetch()[0];
$row = $statement->fetch();
if ($row == false) return 0;
return $row[0];
}
public function getUsergroupNames($uname){