From 36a8b1f11a00fae13fe7f0d4862367951e61ede5 Mon Sep 17 00:00:00 2001 From: Keith Uplinger Date: Thu, 19 Apr 2018 13:51:09 -0500 Subject: [PATCH] Changed to use php time passed to the database instead of using the database time. --- html/user/edit_email_action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/user/edit_email_action.php b/html/user/edit_email_action.php index f92709eab8..390618fbc3 100644 --- a/html/user/edit_email_action.php +++ b/html/user/edit_email_action.php @@ -60,7 +60,7 @@ if (!is_valid_email_addr($email_addr)) { $database_passwd_hash = password_hash($passwd_hash , PASSWORD_DEFAULT); $email_addr = BoincDb::escape_string($email_addr); $result = $user->update( - "email_addr='$email_addr', previous_email_addr='$user->email_addr', email_addr_change_time=unix_timestamp(), passwd_hash='$passwd_hash', email_validated=0" + "email_addr='$email_addr', previous_email_addr='$user->email_addr', email_addr_change_time=".time().", passwd_hash='$passwd_hash', email_validated=0" ); $user->previous_email_addr=$user->email_addr; $user->email_addr=$email_addr;