// fix warning

This commit is contained in:
Gregory Roussac
2013-01-30 14:56:54 +01:00
parent a565e08bc0
commit 700fd6a1a3
+1 -1
View File
@@ -902,7 +902,7 @@ class ProductCore extends ObjectModel
);
$return = Db::getInstance()->delete('category_product', 'id_product = '.(int)$this->id);
if ($clean_positions === true)
if ($clean_positions === true && is_array($result))
foreach ($result as $row)
$return &= $this->cleanPositions((int)$row['id_category']);