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/views/tableaux/view.html.php +5 -5 1.6.9 → 1.8.16 View file →
@@ -15,12 +15,12 @@
15 15 class VikbookingViewTableaux extends JViewVikBooking
16 16 {
17 17 public function display($tpl = null)
18 18 {
19 - //set noindex instruction for robots
19 + // set noindex instruction for robots
20 20 $document = JFactory::getDocument();
21 - $document->setMetaData('robots', 'noindex,follow');
22 - //
21 + $document->setMetaData('robots', 'noindex, nofollow');
22 +
23 23 $app = JFactory::getApplication();
24 24 $dbo = JFactory::getDbo();
25 25 $opobj = VikBooking::getOperatorInstance();
26 26
@@ -58,9 +58,9 @@
58 58 $tsinfo = getdate();
59 59 $fromts = mktime(0, 0, 0, $tsinfo['mon'], ($tsinfo['mday'] - $past_days), $tsinfo['year']);
60 60 $tots = mktime(23, 59, 59, $tsinfo['mon'], ($tsinfo['mday'] + $visible_days), $tsinfo['year']);
61 61
62 - $roomids = array_filter((array) $operator['perms']['rooms']);
62 + $roomids = array_filter((array) ($operator['perms']['rooms'] ?? []));
63 63
64 64 // get all rooms enabled for the operator
65 65 $rooms = [];
66 66 $q = "SELECT `id`,`name`,`units`,`params` FROM `#__vikbooking_rooms`" . ($roomids ? " WHERE `id` IN (" . implode(', ', array_map('intval', $roomids)) . ")" : "") . " ORDER BY `name` ASC;";
@@ -78,9 +78,9 @@
78 78 }
79 79
80 80 // get all occupied dates for these rooms
81 81 $rooms_busy = [];
82 - $q = "SELECT `b`.*,`ob`.`idorder`,`o`.`custdata`,`o`.`status`,`o`.`country`,`oc`.`idcustomer`,`c`.`first_name`,`c`.`last_name`,
82 + $q = "SELECT `b`.*,`ob`.`idorder`,`o`.`custdata`,`o`.`status`,`o`.`country`,`o`.`phone`,`oc`.`idcustomer`,`c`.`first_name`,`c`.`last_name`,
83 83 (SELECT GROUP_CONCAT(`or`.`roomindex` SEPARATOR ';') FROM `#__vikbooking_ordersrooms` AS `or` WHERE `or`.`idorder`=`ob`.`idorder`) AS `indexes`,
84 84 (SELECT GROUP_CONCAT(`or`.`adults` SEPARATOR ';') FROM `#__vikbooking_ordersrooms` AS `or` WHERE `or`.`idorder`=`ob`.`idorder`) AS `adults`,
85 85 (SELECT GROUP_CONCAT(`or`.`children` SEPARATOR ';') FROM `#__vikbooking_ordersrooms` AS `or` WHERE `or`.`idorder`=`ob`.`idorder`) AS `children`,
86 86 (SELECT GROUP_CONCAT(`or`.`pets` SEPARATOR ';') FROM `#__vikbooking_ordersrooms` AS `or` WHERE `or`.`idorder`=`ob`.`idorder`) AS `pets`,