← All changes
|
includes/Frontend/Form/View/Conversational/ConversationalTheme.php
+7
-0
3.1.4
→
V3.3.2
View file →
| @@ -42,8 +42,11 @@ | ||
| 42 | 42 | return ''; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | $field = $formViewInstance->fields($rowID); |
| 46 | + if (!is_object($field)) { | |
| 47 | + return ''; | |
| 48 | + } | |
| 46 | 49 | $field_name = $formViewInstance->getFieldName($rowID); |
| 47 | 50 | $form_atomic_Cls_map = $formViewInstance->getAtomicClaMap(); |
| 48 | 51 | $error = $formViewInstance->getError($rowID); |
| 49 | 52 | $value = $formViewInstance->getValue($field_name, $rowID); |
| @@ -76,8 +79,12 @@ | ||
| 76 | 79 | } |
| 77 | 80 | |
| 78 | 81 | public function getField($field, $rowID, $field_name, $form_atomic_Cls_map, $error, $value, $formID) |
| 79 | 82 | { |
| 83 | + if (!is_object($field)) { | |
| 84 | + return ''; | |
| 85 | + } | |
| 86 | + | |
| 80 | 87 | // Pro-only fields ship in the Bit Form Pro plugin. In the free plugin, we avoid rendering Pro implementations. |
| 81 | 88 | $proMissingHtml = '<div class="bf-pro-field-missing"> <!-- Require Bit Form Pro --> </div>'; |
| 82 | 89 | |
| 83 | 90 | switch ($field->typ) { |