From fd51d7f449a7730ad20fe4d065dd85e01d1968d4 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Tue, 12 Jul 2016 16:59:11 +0200 Subject: [PATCH] small update --- modules/privatesales_logistique/classes/MakeStats.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/privatesales_logistique/classes/MakeStats.php b/modules/privatesales_logistique/classes/MakeStats.php index 2ed5451f..3ffb4d31 100755 --- a/modules/privatesales_logistique/classes/MakeStats.php +++ b/modules/privatesales_logistique/classes/MakeStats.php @@ -302,9 +302,16 @@ class MakeStats { foreach ($res2 as $k => $value) { if((int)$value['product_attribute_id']!=0 && $key = array_search($value['product_attribute_id'], array_column($res, 'product_attribute_id')) - && $key + && $key + && $key['product_id'] == $value['product_id'] ) { unset($res2[$k]); + } elseif ((int)$value['product_attribute_id']==0 + && $key = array_search($value['product_id'], array_column($res, 'product_id')) + && $key + && (int)$key['product_attribute_id'] == 0 + ){ + unset($res2[$k]); } }