[-] FO : fixed potential error when you delete a best seller #PSCFV-11167

This commit is contained in:
Damien Metzger
2013-12-02 09:25:41 +01:00
parent d887dfc2f1
commit 6230c6249e
+2 -1
View File
@@ -89,7 +89,8 @@ class ProductSaleCore
$ids = array();
foreach ($products as $product)
$ids[$product['id_product']] = 1;
if (Validate::isUnsignedId($product['id_product']))
$ids[$product['id_product']] = 1;
$ids = array_keys($ids);
$ids = array_filter($ids);
sort($ids);