errors fix

This commit is contained in:
lopar 2019-02-16 02:52:19 +02:00
parent e568dfb576
commit 985f1739ae

View File

@ -34,6 +34,7 @@ if ($login) {
} else $statusMessage = 'Ошибка: имя пользователя не существует!';
}
$allowChange = false;
$changePassword = filter_input(INPUT_GET, 'change');
if ($changePassword) {
if (db::c()->query('SELECT 1 FROM `confirmpasswd` WHERE `hash` = "?s" AND `date` = "?s"', $changePassword, date('Y-m-d'))->getNumRows())