diff --git a/modules/hotelreservationsystem/classes/HotelCartBookingData.php b/modules/hotelreservationsystem/classes/HotelCartBookingData.php index 3c8af3f54..2b0902d10 100644 --- a/modules/hotelreservationsystem/classes/HotelCartBookingData.php +++ b/modules/hotelreservationsystem/classes/HotelCartBookingData.php @@ -432,7 +432,7 @@ public function deleteCartBookingData( } // return number of rooms deleted - return $numRooms; + return true; } public function addCartBookingData( diff --git a/modules/hotelreservationsystem/classes/HotelRoomInformation.php b/modules/hotelreservationsystem/classes/HotelRoomInformation.php index 059b4226e..5407802f5 100644 --- a/modules/hotelreservationsystem/classes/HotelRoomInformation.php +++ b/modules/hotelreservationsystem/classes/HotelRoomInformation.php @@ -76,7 +76,7 @@ public function update($null_values = false) { if ($idRoom = $this->id) { // delete rooms from cart which are set inactive - if ($this->id_status == 2) { + if ($this->id_status == self::STATUS_INACTIVE) { $objCartBookingData = new HotelCartBookingData(); if (!$objCartBookingData->deleteCartBookingData(0, 0, $idRoom)) { return false;