From 1a10152523ee783a7d3558b89b0d60935283b5fa Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 5 Mar 2009 19:42:17 +0000 Subject: Online users list works properly git-svn-id: https://code.elgg.org/elgg/trunk@3105 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/statistics.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engine/lib/statistics.php') 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); } } -- cgit v1.2.3