Translates peremption to expiration.
[platal.git] / modules / gadgets.php
index d769a9d..188dc57 100644 (file)
@@ -48,7 +48,7 @@ class GadgetsModule extends PLModule
                                          ev.user_id IS NULL AS nonlu, e.uid
                                    FROM  announces AS e
                               LEFT JOIN  announce_read AS ev ON (e.id = ev.evt_id AND ev.uid = {?})
-                                  WHERE  FIND_IN_SET("valide", e.flags) AND peremption >= NOW()
+                                  WHERE  FIND_IN_SET("valide", e.flags) AND expiration >= NOW()
                                ORDER BY  e.creation_date DESC', S::i('uid'));
         $page->assign('event_count', XDB::query("SELECT FOUND_ROWS()")->fetchOneCell());