2nd fix of the day

This commit is contained in:
ui0ppk 2023-01-25 20:57:32 +02:00
parent c416381be0
commit c3ee098a72
1 changed files with 4 additions and 0 deletions

View File

@ -40,7 +40,11 @@ class User {
$query->bindParam(':username', $username);
$query->execute();
$id = $query->fetch(PDO::FETCH_ASSOC);
if(isset($id['id'])) {
return $id['id'];
} else {
return null;
}
}
public function getUsername() {