aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index c090f3267..5b8f04389 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -745,7 +745,8 @@
$time = time() - $seconds;
- $query = "SELECT * from {$CONFIG->dbprefix}entities where type='user' and time_updated>=$time order by time_updated desc limit $offset, $limit";
+ //$query = "SELECT * from {$CONFIG->dbprefix}entities where type='user' and time_updated>=$time order by time_updated desc limit $offset, $limit";
+ $query = "SELECT distinct e.* from {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}system_log s on e.guid=s.performed_by_guid where e.type='user' and s.time_created>=$time order by s.time_created desc limit $offset,$limit";
return get_data($query, "entity_row_to_elggstar");
}