PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 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 All 139 releases
← All changes | includes/Frontend/Form/View/Conversational/Fields/RadioBoxField.php +2 -2 3.1.2 → V3.3.2 View file →
@@ -24,9 +24,9 @@
24 24 $value = '';
25 25 $radioBoxOptions = '';
26 26 $bfFrontendFormIds = FrontendHelpers::$bfFrontendFormIds;
27 27 $contentCount = count($bfFrontendFormIds);
28 - if (property_exists($field, 'opt') && count($field->opt) > 0) {
28 + if (is_object($field) && property_exists($field, 'opt') && is_countable($field->opt) && count($field->opt) > 0) {
29 29 $defaultValue = isset($field->val) ? $field->val : '';
30 30 foreach ($field->opt as $key => $opt) {
31 31 $value = isset($opt->val) ? $opt->val : $opt->lbl;
32 32 $check = '';
@@ -91,9 +91,9 @@
91 91 }
92 92 }
93 93
94 94 //Other Option
95 - $optCount = property_exists($field, 'opt') ? count($field->opt) : 0;
95 + $optCount = isset($field->opt) && is_countable($field->opt) ? count($field->opt) : 0;
96 96 $otherOptLbl = !empty($field->otherOptLbl) ? $field->otherOptLbl : __('Other...', 'bit-form');
97 97 $inputPh = isset($field->otherInpPh) ? $field->otherInpPh : 'Other...';
98 98 $inpReq = isset($field->valid->otherOptReq) ? ($field->valid->otherOptReq ? 'required' : '') : '';
99 99 if (property_exists($field, 'addOtherOpt') && $field->addOtherOpt) {