removed warning

This commit is contained in:
chandachewe10 2023-01-08 00:01:52 +00:00
parent cb5f1779c2
commit e0b314e5a9
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ if(isset($_POST['login'])){
}
$row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM users LEFT JOIN user_settings on users.user_id = user_settings.user_id WHERE user_email = '$email' AND user_archived_at IS NULL"));
if (password_verify($password, $row['user_password'])) {
if ($row) {
if (password_verify($password, $row['user_password']))
// User variables
$token = $row['user_token'];