Properly displays all event particpants on admin page (Closes #1187).
authorStéphane Jacob <sj@m4x.org>
Fri, 16 Jul 2010 13:46:47 +0000 (15:46 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 16 Jul 2010 13:46:47 +0000 (15:46 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetevents.php
modules/xnetevents/xnetevents.inc.php

index 94680b3..d5091c9 100644 (file)
@@ -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));
     }
 }
 
index bd68285..91bb45e 100644 (file)
@@ -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();