From 591e30d8381e4c21c125b6b8b2905869f1d68e41 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 27 May 2008 09:45:01 +0000 Subject: Marcus Povey * Restrictions checked git-svn-id: https://code.elgg.org/elgg/trunk@721 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/system_log.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/lib') 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); } -- cgit v1.2.3