From 84a1b37f50a6fc2d03dd3838cd8e5d88c229be0a Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 30 Jan 2018 17:47:03 +0100 Subject: [PATCH] Check quantity --- modules/loyalty/bin/reminder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/loyalty/bin/reminder.php b/modules/loyalty/bin/reminder.php index d11ba4cd..42da6b77 100644 --- a/modules/loyalty/bin/reminder.php +++ b/modules/loyalty/bin/reminder.php @@ -66,7 +66,7 @@ SELECT l.id_order FROM `"._DB_PREFIX_."discount` d, `"._DB_PREFIX_."loyalty` l LEFT OUTER JOIN `"._DB_PREFIX_."order_discount` od ON (od.id_discount IS NULL) -WHERE d.active=1 AND d.id_discount=l.id_discount +WHERE d.active=1 AND d.`quantity` != 0 AND d.id_discount=l.id_discount AND d.date_to > '".$dateSqlStart."' AND d.date_to < '".$dateSqlEnd."'"; $result = Db::getInstance()->ExecuteS($sql); if ($result === false) {