summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-09-11 14:23:21 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-09-11 14:23:21 +1000
commit2b68ddaff0f05c8351ea677d2993e4bac319ae17 (patch)
tree19de6de4c32482179877540b8d3dc56a5fe49cc0 /inc
parentecd02144da9a1f233837c17282be1842d2fe0708 (diff)
Don't order by time()
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 951a69a8..a5c8a518 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1367,7 +1367,7 @@
$memcached->delete("threadindex_{$board['uri']}_{$id}");
}
- $query = prepare(sprintf("SELECT * FROM `posts_%s` WHERE (`thread` IS NULL AND `id` = :id) OR `thread` = :id ORDER BY `thread`,`time`", $board['uri']));
+ $query = prepare(sprintf("SELECT * FROM `posts_%s` WHERE (`thread` IS NULL AND `id` = :id) OR `thread` = :id ORDER BY `thread`,`id`", $board['uri']));
$query->bindValue(':id', $id, PDO::PARAM_INT);
$query->execute() or error(db_error($query));