Fixed : fatal error on disabling the The hotel

This commit is contained in:
azhar bhat
2026-10-07 16:26:48 +05:30
parent df93538090
commit d6d448e3d1

View File

@@ -662,7 +662,7 @@ class AdminAddHotelController extends ModuleAdminController
if ($primaryHotelId == $objHotelBranch->id && !$objHotelBranch->active) {
$hotels = $objHotelBranch->hotelBranchesInfo(false, 1);
if (!empty($hotel = array_shift($hotels))) {
Configuration::updateValue('WK_PRIMARY_HOTEL', $objHotelBranch['id']);
Configuration::updateValue('WK_PRIMARY_HOTEL', $hotel['id']);
} else {
$newPrimaryHotelId = Configuration::updateValue('WK_PRIMARY_HOTEL', 0);
}