From b220d716e95810ea2afb3de7c5ca77cb3de6d31e Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 19 Jul 2012 12:35:51 +0000 Subject: [PATCH] // Fix PHP notice --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index bcc9a0772..2a5e58053 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2474,7 +2474,7 @@ class ProductCore extends ObjectModel $price = Tools::convertPrice($price, $id_currency); // Attribute price - if (is_array($result) && (!$specific_price['id_product_attribute'] || $specific_price['price'] < 0)) + if (is_array($result) && (!$specific_price || !$specific_price['id_product_attribute'] || $specific_price['price'] < 0)) { $attribute_price = Tools::convertPrice($result['attribute_price'] !== null ? (float)$result['attribute_price'] : 0, $id_currency); if ($id_product_attribute !== false && !is_null($id_product_attribute)) // If you want the default combination, please use NULL value instead