PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Frontend/Form/View/Theme/ThemeBase.php +7 -0 3.1.03.3.1 View file →
@@ -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) {