From: Stéphane Jacob Date: Sun, 29 May 2011 20:20:30 +0000 (+0200) Subject: Fixes page separation in xnetevent administration. X-Git-Tag: xorg/1.1.2~69 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8270d13ad5c6525a112505235c959fc0c250df36;p=platal.git Fixes page separation in xnetevent administration. Signed-off-by: Stéphane Jacob --- diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index 52c4ad2..aec08cf 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -98,7 +98,7 @@ function get_event_detail($eid, $item_id = false, $asso_id = null) // }}} // {{{ function get_event_participants() -function get_event_participants(&$evt, $item_id, array $tri = array(), $limit = null) +function get_event_participants(&$evt, $item_id, array $tri = array(), $limit = null, $offset = 0) { global $globals; @@ -113,7 +113,7 @@ function get_event_participants(&$evt, $item_id, array $tri = array(), $limit = WHERE ep.eid = {?} AND nb > 0 ' . $append . ' GROUP BY ep.uid', $eid); $uf = new UserFilter(new PFC_True(), $tri); - $users = User::getBulkUsersWithUIDs($uf->filter(array_keys($query), new PlLimit($count, $offset))); + $users = User::getBulkUsersWithUIDs($uf->filter(array_keys($query), new PlLimit($limit, $offset))); $tab = array(); foreach ($users as $user) { $uid = $user->id();