diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-19 12:37:31 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-19 12:37:31 +1100 |
| commit | c59f36f400eb718714154fa1ab125662bc7b89ea (patch) | |
| tree | bb4f8544cb351d897359fdc6ad79d48f8c9ee22b /mod.php | |
| parent | 62bd2ee348f460b3d4cbbdbd8469a783b4c64c78 (diff) | |
a bunch of things
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -464,7 +464,7 @@ openBoard($_board['uri']); $temp = ''; - $query = prepare(sprintf("SELECT * FROM `posts_%s` WHERE `ip` = :ip ORDER BY `sticky` DESC, `time` LIMIT :limit", $_board['uri'])); + $query = prepare(sprintf("SELECT * FROM `posts_%s` WHERE `ip` = :ip ORDER BY `sticky` DESC, `time` DESC LIMIT :limit", $_board['uri'])); $query->bindValue(':ip', $ip); $query->bindValue(':limit', MOD_IP_RECENTPOSTS, PDO::PARAM_INT); $query->execute() or error(db_error($query)); |
