Selaa lähdekoodia

Test option page name, don't assign it~

pdontthink 1 vuosi sitten
vanhempi
commit
1254b5e9b8
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/options.php

+ 1 - 1
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('');
             }