// Small fix
This commit is contained in:
+1
-5
@@ -1017,11 +1017,7 @@ class ProductCore extends ObjectModel
|
|||||||
$diff = false;
|
$diff = false;
|
||||||
for ($i = 0; $diff == false && isset($product_attribute[$i]); $i++)
|
for ($i = 0; $diff == false && isset($product_attribute[$i]); $i++)
|
||||||
if (!in_array($product_attribute[$i], $attributes_list) || $key == $current_product_attribute)
|
if (!in_array($product_attribute[$i], $attributes_list) || $key == $current_product_attribute)
|
||||||
{
|
$diff = true;
|
||||||
if ($return_id)
|
|
||||||
return $key;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (!$diff)
|
if (!$diff)
|
||||||
{
|
{
|
||||||
if ($return_id)
|
if ($return_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user