← All changes
|
includes/classes/integrations/class-notifier-fluentforms.php
+5
-5
2.7.4
→
2.4.3
View file →
| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | if(in_array($cval['element'], $excluded_field_types)){ |
| 97 | 97 | continue; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - $field_type = isset($cval['attributes']['type']) ? $cval['attributes']['type']: ''; | |
| 100 | + $field_type = $cval['attributes']['type']; | |
| 101 | 101 | $field_lbl = !empty($cval['settings']['label'])?$cval['settings']['label']:'Field_'.$cval['attributes']['name']; |
| 102 | 102 | $field_name = $cval['attributes']['name']; |
| 103 | 103 | if('input_image' == $cval['element']){ |
| 104 | 104 | $field_type = 'image'; |
| @@ -163,9 +163,9 @@ | ||
| 163 | 163 | |
| 164 | 164 | if(is_array($fields_data) && !empty($fields_data)){ |
| 165 | 165 | foreach($fields_data as $field_key => $field_value){ |
| 166 | 166 | |
| 167 | - $field_name = isset($field_value['name']) ? $field_value['name'] : ''; | |
| 167 | + $field_name = $field_value['name']; | |
| 168 | 168 | $field_label = $field_value['label']; |
| 169 | 169 | $field_type = $field_value['type']; |
| 170 | 170 | if($field_type == 'image'){ |
| 171 | 171 | $return_type = 'image'; |
| @@ -217,9 +217,9 @@ | ||
| 217 | 217 | if(in_array($cval['element'], $excluded_field_types)){ |
| 218 | 218 | continue; |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - $field_type = isset($cval['attributes']['type']) ? $cval['attributes']['type'] : ''; | |
| 221 | + $field_type = $cval['attributes']['type']; | |
| 222 | 222 | if('tel' == $field_type){ |
| 223 | 223 | $field_lbl = !empty($cval['settings']['label'])?$cval['settings']['label']:'Field_'.$cval['attributes']['name']; |
| 224 | 224 | $field_name = $cval['attributes']['name']; |
| 225 | 225 | |
| @@ -231,9 +231,9 @@ | ||
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | 233 | } |
| 234 | 234 | }else { |
| 235 | - $field_type = isset($value['attributes']['type']) ? $value['attributes']['type'] : ''; | |
| 235 | + $field_type = $value['attributes']['type']; | |
| 236 | 236 | if('tel' == $field_type){ |
| 237 | 237 | $field_name = $value['attributes']['name']; |
| 238 | 238 | |
| 239 | 239 | if(!empty($value['settings']['label'])){ |
| @@ -258,9 +258,9 @@ | ||
| 258 | 258 | if('tel' != $field_value['type']){ |
| 259 | 259 | continue; |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | - $field_name = isset($field_value['name']) ? $field_value['name'] : ''; | |
| 262 | + $field_name = $field_value['name']; | |
| 263 | 263 | $field_label = $field_value['label']; |
| 264 | 264 | |
| 265 | 265 | $recipient_fields['Fluent Forms'][] = array( |
| 266 | 266 | 'id' => 'fluentforms_' . $form_id . '_' . $field_key, |