PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmFieldValueSelector.php +8 -5 6.26 → trunk View file →
@@ -102,13 +102,15 @@
102 102 }
103 103
104 104 $this->set_db_row();
105 105
106 - if ( $this->has_db_row() ) {
107 - $this->set_field_key();
108 - $this->set_field_settings();
109 - $this->set_options();
106 + if ( ! $this->has_db_row() ) {
107 + return;
110 108 }
109 +
110 + $this->set_field_key();
111 + $this->set_field_settings();
112 + $this->set_options();
111 113 }
112 114
113 115 /**
114 116 * Set the db_row property
@@ -279,12 +281,13 @@
279 281 protected function display_dropdown() {
280 282 echo '<select name="' . esc_attr( $this->html_name ) . '">';
281 283 echo '<option value="">' . esc_html( $this->blank_option_label ) . '</option>';
282 284
283 - if ( ! empty( $this->options ) ) {
285 + if ( $this->options ) {
284 286 $truncate = $this->truncate ?? 25;
285 287
286 288 foreach ( $this->options as $key => $value ) {
289 + // phpcs:ignore Universal.Operators.StrictComparisons
287 290 if ( $value == '' ) {
288 291 continue;
289 292 }
290 293