2nd fix of the day
This commit is contained in:
parent
c416381be0
commit
c3ee098a72
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue