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 | site/helpers/error_form.php +2 -2 1.8.13 → 1.8.16 View file →
@@ -846,9 +846,9 @@
846 846 $globnumadults = VikBooking::getSearchNumAdults();
847 847 $adultsparts = explode('-', $globnumadults);
848 848 $adultsel = "<select name=\"adults[]\">";
849 849 for($a = $adultsparts[0]; $a <= $adultsparts[1]; $a++) {
850 - $adultsel .= "<option value=\"".$a."\"".($oldarrpeople[$i]['adults'] == $a ? " selected=\"selected\"" : "").">".$a."</option>";
850 + $adultsel .= "<option value=\"".$a."\"".(($oldarrpeople[$i]['adults'] ?? null) == $a ? " selected=\"selected\"" : "").">".$a."</option>";
851 851 }
852 852 $adultsel .= "</select>";
853 853 $oldroomscountadults[$i] = $adultsel;
854 854 $globnumchildren = VikBooking::getSearchNumChildren();
@@ -854,9 +854,9 @@
854 854 $globnumchildren = VikBooking::getSearchNumChildren();
855 855 $childrenparts = explode('-', $globnumchildren);
856 856 $childrensel = "<select name=\"children[]\">";
857 857 for($c = $childrenparts[0]; $c <= $childrenparts[1]; $c++) {
858 - $childrensel .= "<option value=\"".$c."\"".(($oldarrpeople[$i]['children'] == $c ?? null) ? " selected=\"selected\"" : "").">".$c."</option>";
858 + $childrensel .= "<option value=\"".$c."\"".(($oldarrpeople[$i]['children'] ?? null) == $c ? " selected=\"selected\"" : "").">".$c."</option>";
859 859 }
860 860 $childrensel .= "</select>";
861 861 $oldroomscountchildren[$i] = $childrensel;
862 862 }