Fix undefined variable $userQuery
This commit is contained in:
parent
5d8c126d98
commit
0ffe21fd25
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue