diff options
-rw-r--r-- | engine/lib/statistics.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/lib/statistics.php b/engine/lib/statistics.php index af096e528..22e1e74ec 100644 --- a/engine/lib/statistics.php +++ b/engine/lib/statistics.php @@ -81,12 +81,14 @@ * Return a list of how many users are currently online, rendered as a view. */ function get_online_users() - { - $objects = find_active_users(600,9999); + {
+ $offset = get_input('offset',0);
+ $count = count(find_active_users(600,9999)); + $objects = find_active_users(600,10,$offset); if ($objects) { - return elgg_view_entity_list($objects, count($objects), 0, 10, false); + return elgg_view_entity_list($objects, $count,$offset,10,false); } } |