From 4935bab04157a11f3a3b011d3fc5868a54f3533d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 16 Jul 2010 15:46:47 +0200 Subject: [PATCH] Properly displays all event particpants on admin page (Closes #1187). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/xnetevents.php | 2 +- modules/xnetevents/xnetevents.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/xnetevents.php b/modules/xnetevents.php index 94680b3..d5091c9 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -641,7 +641,7 @@ class XnetEventsModule extends PLModule $page->assign('absents', $absents); $page->assign('participants', get_event_participants($evt, $item_id, UserFilter::sortByName(), - new PLLimit(NB_PER_PAGE), $ofs * NB_PER_PAGE)); + NB_PER_PAGE, $ofs * NB_PER_PAGE)); } } diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index bd68285..91bb45e 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -124,7 +124,7 @@ function get_event_participants(&$evt, $item_id, array $tri = array(), $count = 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), $count, $offset)); + $users = User::getBulkUsersWithUIDs($uf->filter(array_keys($query), new PlLimit($count, $offset))); $tab = array(); foreach ($users as $user) { $uid = $user->id(); -- 2.1.4