From 2133fbe084bd8fecdce7afa4343d0eb3a1f65d7e Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 24 Aug 2023 22:21:36 +0000 Subject: [PATCH] Test option page name, don't assign it git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14996 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.php b/src/options.php index dd30d7ca..2cd2f2ae 100644 --- a/src/options.php +++ b/src/options.php @@ -70,7 +70,7 @@ function process_optionmode_submit($optpage, $optpage_data) { /* Special case: need to make sure emailaddress * is saved if we use it as a test for ask_user_info */ global $ask_user_info; - if ( $optpage = SMOPT_PAGE_PERSONAL && $ask_user_info && + if ( $optpage == SMOPT_PAGE_PERSONAL && $ask_user_info && $option->name == 'email_address' ) { $option->setValue(''); } -- 2.25.1