| @@ -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`, |