summaryrefslogtreecommitdiff
path: root/includes/model/LogEntries_model.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-27 02:18:02 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-27 02:18:02 +0100
commit29a6f020e6a1a8e900239b9855f553e62a00dc26 (patch)
treef552c1f1c573f6b8fd4c0309c7192b585f0d6f48 /includes/model/LogEntries_model.php
parent9293cea5a14f8d2c20bae234768d37d6dcb35ce2 (diff)
#28 finnished logging, fixes, inverted log order
Diffstat (limited to 'includes/model/LogEntries_model.php')
-rw-r--r--includes/model/LogEntries_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/LogEntries_model.php b/includes/model/LogEntries_model.php
index 5659c0ee..95ecf6cd 100644
--- a/includes/model/LogEntries_model.php
+++ b/includes/model/LogEntries_model.php
@@ -12,7 +12,7 @@ function LogEntry_create($nick, $message) {
}
function LogEntries() {
- $log_entries_source = sql_select("SELECT * FROM `LogEntries` WHERE `timestamp` > " . (time() - 24*60*60) . " LIMIT 1000");
+ $log_entries_source = sql_select("SELECT * FROM `LogEntries` WHERE `timestamp` > " . (time() - 24*60*60) . " ORDER BY `timestamp` DESC LIMIT 1000");
return $log_entries_source;
}