From a896679d6aeea3b8ec988ebc5d77d95d4c79ac97 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 8 Jan 2018 17:07:30 +0100 Subject: [PATCH] Use number only when we get more than 1 discount --- modules/ant_refund_discount/ant_refund_discount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ant_refund_discount/ant_refund_discount.php b/modules/ant_refund_discount/ant_refund_discount.php index 34537573..0dd063fa 100644 --- a/modules/ant_refund_discount/ant_refund_discount.php +++ b/modules/ant_refund_discount/ant_refund_discount.php @@ -91,7 +91,7 @@ class Ant_Refund_Discount extends Module $num = 0; foreach($discountUse as $d) { // If several discount on the order - if (count($discountUse) > 0) { + if (count($discountUse) > 1) { $num++; } $this->copyDiscountAfterRefund($order, $d, $num);