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 | admin/views/ratesoverv/view.html.php +3 -3 1.7.2 → 1.8.16 View file →
@@ -68,9 +68,9 @@
68 68 }
69 69 // make sure to set at least the first index of cid[]
70 70 $cid[0] = $roomid;
71 71 //
72 - $q = "SELECT `id`,`name` FROM `#__vikbooking_rooms` ORDER BY `#__vikbooking_rooms`.`name` ASC;";
72 + $q = "SELECT `id`,`name`,`img` FROM `#__vikbooking_rooms` ORDER BY `#__vikbooking_rooms`.`name` ASC;";
73 73 $dbo->setQuery($q);
74 74 $all_rooms = $dbo->loadAssocList();
75 75
76 76 /**
@@ -98,14 +98,14 @@
98 98 // room
99 99 array_push($reqids, $rid);
100 100 }
101 101 }
102 - if (!count($reqcats) && !count($reqids)) {
102 + if (!$reqcats && !$reqids) {
103 103 $app->redirect("index.php?option=com_vikbooking&task=rooms");
104 104 exit;
105 105 }
106 106
107 - if (!count($reqcats) && empty($sesscids) && count($reqids) === 1 && count($all_rooms) > 1) {
107 + if (!$reqcats && empty($sesscids) && count($reqids) === 1 && count($all_rooms) > 1) {
108 108 // push the first 5 rooms by default
109 109 $max_def_rooms = VBOFactory::getConfig()->getInt('roverv_def_max_rooms', 5);
110 110 $def_rooms_count = 0;
111 111 $reqids = [];