From 6230c6249e272567bcdce6e01e1c44c929cb347f Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 2 Dec 2013 09:25:28 +0100 Subject: [PATCH] [-] FO : fixed potential error when you delete a best seller #PSCFV-11167 --- classes/ProductSale.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/ProductSale.php b/classes/ProductSale.php index d24400f5d..6830f628e 100644 --- a/classes/ProductSale.php +++ b/classes/ProductSale.php @@ -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);