diff --git a/rememberpassword.php b/rememberpassword.php index 6869e63..3de3a8f 100644 --- a/rememberpassword.php +++ b/rememberpassword.php @@ -23,7 +23,7 @@ function mail_send($to, $from_user, $from_email, $subject = '(No subject)', $mes $login = filter_input(INPUT_POST, 'loginid', FILTER_SANITIZE_SPECIAL_CHARS); if ($login) { $recovery = db::c()->query('SELECT 1 FROM users_recovery WHERE login = "?s"', $login); - if ($recovery->getNumRows()) { + if (!empty($recovery->getNumRows())) { $sql = db::c()->query('SELECT email FROM users WHERE login = "?s"', $login)->fetch_assoc(); if ($sql) { $hash = bin2hex(random_bytes(8));