Prevents cancelled AX letters from showing up in the list.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sun, 18 May 2008 14:38:32 +0000 (16:38 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sun, 18 May 2008 14:38:32 +0000 (16:38 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/axletter/axletter.inc.php

index a82eb64..8ec19b6 100644 (file)
@@ -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();
     }