Projects/nettsiden-old
Projects
/
nettsiden-old
Archived
8
0
Fork 0
This commit is contained in:
Peder Bergebakken Sundt 2021-08-12 13:44:47 +02:00
parent cd1792c130
commit db6af95063
1 changed files with 3 additions and 1 deletions

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){