From: Vincent Zanotti Date: Sun, 18 May 2008 14:38:32 +0000 (+0200) Subject: Prevents cancelled AX letters from showing up in the list. X-Git-Tag: core/1.0.0~187 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5b46c60b5a5a29d968348aea4dbffed343400cd9;p=platal.git Prevents cancelled AX letters from showing up in the list. Signed-off-by: Vincent Zanotti --- 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(); }