From 387d59643f283eb25f95dbc6121ba7acf9fb011e Mon Sep 17 00:00:00 2001 From: Keith Uplinger Date: Tue, 8 May 2018 12:11:29 -0500 Subject: [PATCH] Fixed problem with bad constant called for invalid email address in am_set_info.php --- html/user/am_set_info.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/user/am_set_info.php b/html/user/am_set_info.php index 5eb8ceb2ec..b4096b3eed 100644 --- a/html/user/am_set_info.php +++ b/html/user/am_set_info.php @@ -117,17 +117,17 @@ $email_addr = strtolower($email_addr); if ($email_addr && $email_addr != $user->email_addr) { $tmpuser = BoincUser::lookup_email_addr($email_addr); if ($tmpuser) { - xml_error(ERROR_BAD_EMAIL_ADDR, "There's already an account with that email address."); + xml_error(ERR_BAD_EMAIL_ADDR, "There's already an account with that email address."); } //check if the email address is included in previous_email_addr window. // $tmpuser = BoincUser::lookup_prev_email_addr($email_addr); if ($tmpuser) { - xml_error(ERROR_BAD_EMAIL_ADDR, "Email address is already in use"); + xml_error(ERR_BAD_EMAIL_ADDR, "Email address is already in use"); } if ($user->email_addr_change_time + 604800 > time()) { - xml_error(ERROR_BAD_EMAIL_ADDR, "Email address was changed within the past 7 days, please look for an email to $user->previous_email_addr if this email change is incorrect."); + xml_error(ERR_BAD_EMAIL_ADDR, "Email address was changed within the past 7 days, please look for an email to $user->previous_email_addr if this email change is incorrect."); } if (!is_valid_email_addr($email_addr)) {