Changeset 2813424
- Timestamp:
- 11/07/2022 10:46:29 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mailbluster4wp/trunk/admin/partials/form-options/builder.php
r2813392 r2813424 4 4 $form_input_field = isset($form_input_field) && !empty($form_input_field) ? $form_input_field : 'email'; 5 5 $custom_field = MailBluster4WP_Helper::get_custom_field(); 6 if($custom_field->fields === 'null') $custom_field->fields = [];7 6 $newArr = []; 8 foreach($custom_field->fields as $v){ 9 array_push($newArr, $v->fieldLabel); 10 }; 7 if(isset($custom_field->fields)){ 8 foreach($custom_field->fields as $v){ 9 array_push($newArr, $v->fieldLabel); 10 }; 11 } 11 12 $newArrStr = implode(",", $newArr); 12 13 ?> … … 22 23 <button type="button" id="mb4wp-builder-last-name" class="mb4wp-field-button" value="last_name"><?php esc_html_e('Last Name', 'mailbluster4wp'); ?></button> 23 24 <?php 24 if (is _array($custom_field->fields)) {25 if (isset($custom_field->fields) && is_array($custom_field->fields)) { 25 26 foreach ($custom_field->fields as $custom_field) { 26 27 ?>
Note: See TracChangeset
for help on using the changeset viewer.