Update Product.php

Fix PHP7.4
This commit is contained in:
wdammak
2020-09-29 18:50:12 +02:00
committed by GitHub
parent 3e3dc9fbaa
commit b08a1648b6

View File

@@ -2369,6 +2369,7 @@ class ProductCore extends ObjectModel
$id_address = $context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')};
$ids = Address::getCountryAndState($id_address);
$ids['id_country'] = $ids['id_country'] ?? null;
$id_country = $ids['id_country'] ? (int)$ids['id_country'] : (int)Configuration::get('PS_COUNTRY_DEFAULT');
return SpecificPrice::getProductIdByDate(