aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 19:42:17 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 19:42:17 +0000
commit1a10152523ee783a7d3558b89b0d60935283b5fa (patch)
tree90d3f71fe2ff0e9dd951cec61620857a66f8676c /engine
parentd2730794963cfe55b215e4c7781314c908eae0a5 (diff)
downloadelgg-1a10152523ee783a7d3558b89b0d60935283b5fa.tar.gz
elgg-1a10152523ee783a7d3558b89b0d60935283b5fa.tar.bz2
Online users list works properly
git-svn-id: https://code.elgg.org/elgg/trunk@3105 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/statistics.php8
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);
}
}