From 5b46c60b5a5a29d968348aea4dbffed343400cd9 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sun, 18 May 2008 16:38:32 +0200 Subject: [PATCH] Prevents cancelled AX letters from showing up in the list. Signed-off-by: Vincent Zanotti --- modules/axletter/axletter.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/axletter/axletter.inc.php b/modules/axletter/axletter.inc.php index a82eb64..8ec19b6 100644 --- a/modules/axletter/axletter.inc.php +++ b/modules/axletter/axletter.inc.php @@ -225,7 +225,7 @@ class AXLetter extends MassMailer { $res = XDB::query("SELECT IF(short_name IS NULL, id, short_name) as id, date, subject AS titre FROM axletter - WHERE NOT (FIND_IN_SET('new', bits)) + WHERE NOT FIND_IN_SET('new', bits) AND NOT FIND_IN_SET('invalid', bits) ORDER BY date DESC"); return $res->fetchAllAssoc(); } -- 2.1.4