Skip to content

Commit 06ce422

Browse files
committed
Updated to long array format.
1 parent 64c1170 commit 06ce422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/class-notification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public function replace_all_fields( $text = '' ) {
648648
$table .= '<tr class="field-value">';
649649
$table .= '<td>';
650650

651-
if ( in_array( $value['type'], [ 'multiple_select', 'checkbox_field', 'google_maps' ] ) ) {
651+
if ( in_array( $value['type'], array( 'multiple_select', 'checkbox_field' ) ) ) {
652652
$field_value = is_array( $field_value ) ? $field_value : [];
653653

654654
if ( $field_value ) {
@@ -661,7 +661,7 @@ public function replace_all_fields( $text = '' ) {
661661
} else {
662662
$table .= '&mdash;';
663663
}
664-
}elseif (in_array( $value['type'], [ 'google_map' ] ) ) {
664+
}elseif ( in_array( $value['type'], array('google_map') ) ) {
665665
$table .= $field_value['address'];
666666
} else {
667667
$table .= $field_value;

0 commit comments

Comments
 (0)