aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/online_users
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/online_users')
-rw-r--r--views/default/widgets/online_users/content.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/widgets/online_users/content.php b/views/default/widgets/online_users/content.php
index d81ff3705..6e0cc7abb 100644
--- a/views/default/widgets/online_users/content.php
+++ b/views/default/widgets/online_users/content.php
@@ -3,4 +3,13 @@
* Online users widget
*/
-echo $users_online = get_online_users(); \ No newline at end of file
+$count = find_active_users(600, 10, 0, true);
+$objects = find_active_users(600, 10);
+
+if ($objects) {
+ echo elgg_view_entity_list($objects, array(
+ 'count' => $count,
+ 'limit' => 10,
+ 'pagination' => false,
+ ));
+}