From: Stéphane Jacob Date: Fri, 16 Jul 2010 13:46:47 +0000 (+0200) Subject: Properly displays all event particpants on admin page (Closes #1187). X-Git-Tag: xorg/1.0.1~337 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4935bab04157a11f3a3b011d3fc5868a54f3533d;p=platal.git Properly displays all event particpants on admin page (Closes #1187). Signed-off-by: Stéphane Jacob --- 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();