diff options
-rwxr-xr-x | changepassword.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/changepassword.cgi b/changepassword.cgi index 3e433ed04..5922a1e03 100755 --- a/changepassword.cgi +++ b/changepassword.cgi @@ -141,9 +141,11 @@ Please click <b>Back</b> and try again.\n"; } +my $newemailtech = exists $::FORM{'newemailtech'}; + SendSQL("UPDATE profiles " . "SET emailnotification='$::FORM{'emailnotification'}', " . - " newemailtech = '$::FORM{'newemailtech'}' " . + " newemailtech = '$newemailtech' " . "WHERE login_name = " . SqlQuote($::COOKIE{'Bugzilla_login'})); my $newrealname = $::FORM{'realname'}; |