// fix warning with specific price
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15623 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
e5bf522fe8
commit
947f98c44e
1 file changed
+1
-1
+1
-1
@@ -2447,7 +2447,7 @@ class ProductCore extends ObjectModel
|
|||||||
$price = Tools::convertPrice($price, $id_currency);
|
$price = Tools::convertPrice($price, $id_currency);
|
||||||
|
|
||||||
// Attribute price
|
// Attribute price
|
||||||
if (!$specific_price || !$specific_price['id_product_attribute'])
|
if (is_array($result) && (!$specific_price || !$specific_price['id_product_attribute']))
|
||||||
{
|
{
|
||||||
$attribute_price = Tools::convertPrice(array_key_exists('attribute_price', $result) ? (float)$result['attribute_price'] : 0, $id_currency);
|
$attribute_price = Tools::convertPrice(array_key_exists('attribute_price', $result) ? (float)$result['attribute_price'] : 0, $id_currency);
|
||||||
if ($id_product_attribute !== false) // If you want the default combination, please use NULL value instead
|
if ($id_product_attribute !== false) // If you want the default combination, please use NULL value instead
|
||||||
|
|||||||
Reference in new issue
Block a user