This commit is contained in:
Christophe Latour 2016-09-15 17:10:25 +02:00
parent 9b72c15121
commit 9b18adb563

View File

@ -43,7 +43,7 @@ class Affilnet extends Module
$customer = new Customer($order->id_customer); $customer = new Customer($order->id_customer);
$discounts = $order->getDiscounts(); $discounts = $order->getDiscounts();
$ids_discount = ''; $ids_discount = '';
for ($i = 0 ; $i <= count($discounts); $i++) { for ($i = 0 ; $i < count($discounts); $i++) {
$ids_discount .= $discounts[$i]['id_cart_rule']; $ids_discount .= $discounts[$i]['id_cart_rule'];
if ($i < count($discounts) - 1) { if ($i < count($discounts) - 1) {
$ids_discount .= ':'; $ids_discount .= ':';