Do not use type comparison for isEmailInDatabase()
This commit is contained in:
parent
9f206183a3
commit
8d36816f39
@ -19,7 +19,8 @@ final class UserModel
|
||||
$stmt->bindParam("email", $S_email);
|
||||
$stmt->execute();
|
||||
|
||||
return $stmt->fetch()[0] !== 0;
|
||||
$count = $stmt->fetch()[0];
|
||||
return $count != 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user