<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2009 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
'xnetgrp/announce-rss.tpl');
}
- protected function fetch($user)
+ protected function fetch(PlUser &$user)
{
global $globals;
if (!is_null($user)) {
AND (a.promo_max = 0 OR a.promo_max <= u.promo))
INNER JOIN auth_user_md5 AS u2 ON (u2.user_id = a.user_id)
WHERE u.user_id = {?} AND peremption >= NOW() AND a.asso_id = {?}",
- $this->link, $user, $globals->asso('id'));
+ $this->link, $user->id(), $globals->asso('id'));
} else {
return XDB::iterator("SELECT a.id, a.titre AS title, a.texte, a.create_date AS publication,
CONCAT(u.prenom, ' ', IF(u.nom_usage != '', u.nom_usage, u.nom), ' (X', u.promo, ')') AS author,