Skip to content

Commit

Permalink
Merge pull request #1221 from wdammak/patch-61
Browse files Browse the repository at this point in the history
Reuse existing HotelBookingDetail instance to avoid redundant object …
  • Loading branch information
rohit053 authored Oct 7, 2024
2 parents eceb230 + 4a4b8f0 commit 8714b91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/front/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ public function initContent()

$booking_data = $objBookingDetail->dataForFrontSearch($bookingParams);

$obj_booking_detail = new HotelBookingDetail();
$num_days = $obj_booking_detail->getNumberOfDays($date_from, $date_to);
$num_days = $objBookingDetail->getNumberOfDays($date_from, $date_to);

$warning_num = Configuration::get('WK_ROOM_LEFT_WARNING_NUMBER');

Expand Down

0 comments on commit 8714b91

Please sign in to comment.