← All changes
|
includes/classes/integrations/class-notifier-fluentforms.php
+4
-8
3.1.1
→
2.6.3
View file →
| @@ -1,9 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - exit; | |
| 4 | -} | |
| 5 | - | |
| 6 | 2 | /** |
| 7 | 3 | * FluentForms notifications |
| 8 | 4 | * |
| 9 | 5 | * @package Wa_Notifier |
| @@ -130,9 +126,9 @@ | ||
| 130 | 126 | } |
| 131 | 127 | } |
| 132 | 128 | }else if('input_image' === $value['element']) { |
| 133 | 129 | $field_type = 'image'; |
| 134 | - $field_name = isset($value['attributes']['name']) ? $value['attributes']['name'] : ''; | |
| 130 | + $field_name = $value['attributes']['name']; | |
| 135 | 131 | |
| 136 | 132 | if(!empty($value['settings']['label'])){ |
| 137 | 133 | $field_lbl = $value['settings']['label']; |
| 138 | 134 | }else if(!empty($value['settings']['admin_field_label'])){ |
| @@ -145,10 +141,10 @@ | ||
| 145 | 141 | 'label' => $field_lbl, |
| 146 | 142 | 'type' => $field_type, |
| 147 | 143 | ]; |
| 148 | 144 | }else { |
| 149 | - $field_type = !empty($value['attributes']['type']) ? $value['attributes']['type'] : 'text'; | |
| 150 | - $field_name = isset($value['attributes']['name']) ? $value['attributes']['name'] : ''; | |
| 145 | + $field_type = !empty($value['attributes']['type'])?$value['attributes']['type']:'text'; | |
| 146 | + $field_name = $value['attributes']['name']; | |
| 151 | 147 | |
| 152 | 148 | if(!empty($value['settings']['label'])){ |
| 153 | 149 | $field_lbl = $value['settings']['label']; |
| 154 | 150 | }else if(!empty($value['settings']['admin_field_label'])){ |
| @@ -153,9 +149,9 @@ | ||
| 153 | 149 | $field_lbl = $value['settings']['label']; |
| 154 | 150 | }else if(!empty($value['settings']['admin_field_label'])){ |
| 155 | 151 | $field_lbl = $value['settings']['admin_field_label']; |
| 156 | 152 | }else{ |
| 157 | - $field_lbl = 'lbl_'.$field_name; | |
| 153 | + $field_lbl = 'lbl_'.$value['attributes']['name']; | |
| 158 | 154 | } |
| 159 | 155 | |
| 160 | 156 | $fields_data[$field_name] = [ |
| 161 | 157 | 'label' => $field_lbl, |