From 4d99a5bcadf8f230f024c551c131a9de172e3f11 Mon Sep 17 00:00:00 2001 From: lopar Date: Thu, 27 Aug 2020 20:11:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D0=BE=D1=82=D1=80=D0=B0=D0=B1?= =?UTF-8?q?=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rememberpassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));