| @@ -39,8 +39,11 @@ | ||
| 39 | 39 | |
| 40 | 40 | public function inputWrapper($formViewInstance, $rowID) |
| 41 | 41 | { |
| 42 | 42 | $field = $formViewInstance->fields($rowID); |
| 43 | + if (!is_object($field)) { | |
| 44 | + return ''; | |
| 45 | + } | |
| 43 | 46 | $field_name = $formViewInstance->getFieldName($rowID); |
| 44 | 47 | $form_atomic_Cls_map = $formViewInstance->getAtomicClaMap(); |
| 45 | 48 | $error = $formViewInstance->getError($rowID); |
| 46 | 49 | $value = $formViewInstance->getValue($field_name, $rowID); |
| @@ -84,8 +87,12 @@ | ||
| 84 | 87 | } |
| 85 | 88 | |
| 86 | 89 | protected function getField($field, $rowID, $field_name, $form_atomic_Cls_map, $error = null, $value = null, $formID = null) |
| 87 | 90 | { |
| 91 | + if (!is_object($field)) { | |
| 92 | + return ''; | |
| 93 | + } | |
| 94 | + | |
| 88 | 95 | // Pro-only fields ship in the Bit Form Pro plugin. In the free plugin, we avoid rendering Pro implementations. |
| 89 | 96 | $proMissingHtml = '<div class="bf-pro-field-missing"> <!-- Require Bit Form Pro --> </div>'; |
| 90 | 97 | |
| 91 | 98 | switch ($field->typ) { |