Fix undefined variable $userQuery

This commit is contained in:
grandeljay 2022-10-09 12:37:46 +02:00
parent 5d8c126d98
commit 0ffe21fd25

View file

@ -34,7 +34,7 @@ if (isset($_POST['login'], $_POST['email'], $_POST['password'])) {
)
->fetch();
$success = false !== $userQuery && is_array($fields);
$success = is_array($fields);
if ($success) {
$_SESSION['user'] = new User($fields);