Do not use type comparison for isEmailInDatabase()

This commit is contained in:
Thomas Rubini 2023-01-17 00:05:58 +01:00
parent 9f206183a3
commit 8d36816f39
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -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;
}