Skip to content

Commit 486cede

Browse files
iamdharmeshdkotter
andauthored
Update mailchimp.php
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
1 parent 864b6f5 commit 486cede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mailchimp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ function mailchimp_sf_get_merge_vars( $list_id, $new_list ) {
684684
foreach ( $mv['merge_fields'] as $mv_var ) {
685685
$opt = 'mc_mv_' . $mv_var['tag'];
686686
if ( $new_list ) {
687-
$public = isset( $mv_var['public'] ) ? $mv_var['public'] : false;
687+
$public = $mv_var['public'] ?? false;
688688
if ( ! $public ) {
689689
// This is a hidden field, so we don't want to include it.
690690
update_option( $opt, 'off' );

0 commit comments

Comments
 (0)