Fix PHP warning on Booking Carts > View page at back office

This commit is contained in:
Abhishek Kumar
2023-07-24 18:41:59 +05:30
parent ccace94c38
commit f6b56ae0d0

View File

@@ -1300,7 +1300,8 @@ class CarrierCore extends ObjectModel
}
$id_address = (int)((!is_null($id_address_delivery) && $id_address_delivery != 0) ? $id_address_delivery : $cart->id_address_delivery);
if ($id_address) {
$obj_address = new Address($id_address);
if (Validate::isLoadedObject($obj_address)) {
$id_zone = Address::getZoneById($id_address);
// Check the country of the address is activated