aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/system_log.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php
index f7a44fb7d..9f640fcf3 100644
--- a/engine/lib/system_log.php
+++ b/engine/lib/system_log.php
@@ -70,6 +70,9 @@
foreach ($where as $w)
$query .= " and $w";
+ $query .= " order by time_created desc";
+ $query .= " limit $offset, $limit"; // Add order and limit
+
return get_data($query);
}