PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | libraries/html/form/fields/list.php +12 -0 1.6.4 → 1.8.16 View file →
@@ -55,9 +55,21 @@
55 55
56 56 <?php
57 57 foreach ($options as $val => $text)
58 58 {
59 + if (is_object($text))
60 + {
61 + $val = $text->value;
62 + $text = $text->text;
63 + }
64 +
59 65 $selected = ($multiple && in_array($val, $value)) || $val == $value;
66 +
67 + if ($val == '' && $text == '')
68 + {
69 + // use default placeholder when not specified
70 + $text = 'JGLOBAL_SELECT_AN_OPTION';
71 + }
60 72 ?>
61 73
62 74 <option
63 75 value="<?php echo esc_attr($val); ?>"