diff --git a/rememberpassword.php b/rememberpassword.php index c82ec92..bcd6129 100644 --- a/rememberpassword.php +++ b/rememberpassword.php @@ -25,7 +25,7 @@ $login = filter_input(INPUT_POST, 'loginid', FILTER_SANITIZE_SPECIAL_CHARS); if ($login) { $sql = db::c()->query('SELECT `login`, `email` FROM `users` WHERE `login` = "?s"', $login)->fetch_assoc(); $newpass = random_password(); - $lasttime = date('Y-m-d', strtotime($Date . ' + 1 days')); + $lasttime = date('Y-m-d', strtotime('+1days')); $ip = $_SERVER['REMOTE_ADDR']; if ($sql['login'] && db::c()->query('INSERT INTO `confirmpasswd` (`login`, `passwd`, `date`, `ip`, `active`) VALUES ("?s", "?s", "?s", "?s", "?s")', $sql['login'], $newpass, $lasttime, $ip)) {