diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php index c3f413c59..1056deafe 100644 --- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php +++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php @@ -277,6 +277,12 @@ class HotelBranchInformation extends ObjectModel unset($dataArray[$key]); } } + } else { + if ($addAccessKey) { + $dataArray[$key]['htl_access'] = 0; + } else { + unset($dataArray[$key]); + } } } elseif (isset($row['id_product'])) { $objRoomType = new HotelRoomType(); @@ -291,6 +297,12 @@ class HotelBranchInformation extends ObjectModel unset($dataArray[$key]); } } + } else { + if ($addAccessKey) { + $dataArray[$key]['htl_access'] = 0; + } else { + unset($dataArray[$key]); + } } } }