We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0152f commit 3619ac5Copy full SHA for 3619ac5
mailchimp.php
@@ -634,7 +634,11 @@ function mailchimp_sf_save_general_form_settings() {
634
* Sees if the user changed the list, and updates options accordingly
635
**/
636
function mailchimp_sf_change_list_if_necessary() {
637
- if ( empty( $_POST['mc_list_id'] ) ) {
+ if ( ! isset( $_POST['mc_list_id'] ) ) {
638
+ return;
639
+ }
640
+
641
+ if ( isset( $_POST['mc_list_id'] ) && empty( $_POST['mc_list_id'] ) ) {
642
$msg = '<p class="error_msg">' . esc_html__( 'Please choose a valid list', 'mailchimp' ) . '</p>';
643
mailchimp_sf_global_msg( $msg );
644
return;
0 commit comments