X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents%2Ffeed.inc.php;h=63ced8d32da2d10d5915dbe0ef063778e63ed1d0;hb=5c11ce3d14becb0799434db3f1c6cc37eab3ca0f;hp=524ff32d73c43d0c5456870587a2fc2d9546fdca;hpb=684195f33b11e3067200dd3a9e14304bd7d04463;p=platal.git diff --git a/modules/events/feed.inc.php b/modules/events/feed.inc.php index 524ff32..63ced8d 100644 --- a/modules/events/feed.inc.php +++ b/modules/events/feed.inc.php @@ -1,6 +1,6 @@ next()) { $uf = UserFilter::getLegacy($body['promo_min'], $body['promo_max']); @@ -42,7 +42,7 @@ class EventFeed extends PlFeed return null; } - protected function fetch(PlUser &$user) + protected function fetch(PlUser $user) { global $globals; $events = XDB::iterator('SELECT e.id, e.titre AS title, e.texte, e.creation_date AS publication, e.post_id, @@ -50,10 +50,10 @@ class EventFeed extends PlFeed e.uid, e.promo_min, e.promo_max FROM announces AS e LEFT JOIN announce_photos AS p ON (p.eid = e.id) - WHERE FIND_IN_SET("valide", e.flags) AND peremption >= NOW()'); + WHERE FIND_IN_SET("valide", e.flags) AND expiration >= NOW()'); $data = array(); while ($e = self::nextEvent($events, $user)) { - $author = User::getWithUID($e['user_id']); + $author = User::getWithUID($e['uid']); $promo = $author->promo(); $e['author'] = $author->fullName() . ($promo ? ' (' . $promo . ')' : ''); $e['link'] = $globals->baseurl . '/events#newsid' . $e['id'];