From e0b3b7c5da009262a9e65f5b048f7fcb826d6bcb Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 30 Aug 2012 15:43:17 +0000 Subject: [PATCH] // Small fix --- classes/Product.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index 482678440..b717a5211 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -1017,11 +1017,7 @@ class ProductCore extends ObjectModel $diff = false; for ($i = 0; $diff == false && isset($product_attribute[$i]); $i++) if (!in_array($product_attribute[$i], $attributes_list) || $key == $current_product_attribute) - { - if ($return_id) - return $key; - return true; - } + $diff = true; if (!$diff) { if ($return_id)