[-] BO : Fix #PSCFV-10501 Remove fatal error

This commit is contained in:
gRoussac
2013-09-25 18:02:06 +02:00
parent 95a2b2a8a8
commit 7486844222
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -188,8 +188,9 @@ class CurrencyCore extends ObjectModel
4 => array('left' => '', 'right' => &$formated_strings['right']),
5 => array('left' => '', 'right' => &$formated_strings['right'])
);
return ($formats[$this->format][$side]);
if (isset($formats[$this->format][$side]))
return ($formats[$this->format][$side]);
return $this->sign;
}
/**
+1 -1
View File
@@ -2509,7 +2509,7 @@ class ProductCore extends ObjectModel
$id_state = 0;
$zipcode = 0;
if (!$id_address)
if (!$id_address && Validate::isLoadedObject($cur_cart))
$id_address = $cur_cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')};
if ($id_address)