| @@ -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 = []; |