// Added isset before a condition for a property that may not exists
This commit is contained in:
@@ -294,7 +294,7 @@ class FrontControllerCore extends Controller
|
||||
Product::initPricesComputation();
|
||||
|
||||
$display_tax_label = $this->context->country->display_tax_label;
|
||||
if ($cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')})
|
||||
if (isset($cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}) && $cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')})
|
||||
{
|
||||
$infos = Address::getCountryAndState((int)($cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}));
|
||||
$country = new Country((int)$infos['id_country']);
|
||||
|
||||
Reference in New Issue
Block a user