diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-03-24 19:01:51 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-03-24 19:01:51 -0600 |
commit | 0ecae4e72d7d4ace51b731ff2c5d5eb63351e3e1 (patch) | |
tree | 40ddad473bfc2e3e5c215da9ee0853044695737c /model/Category.php | |
parent | c9732788143886b611cb2fecfb53daf3d8add48f (diff) |
Add thread replies, sort threads by last reply
Diffstat (limited to 'model/Category.php')
-rw-r--r-- | model/Category.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/Category.php b/model/Category.php index 4e57f46..5a2c11c 100644 --- a/model/Category.php +++ b/model/Category.php @@ -33,7 +33,7 @@ class Category { } function get_threads($dbc) { - $sql = "SELECT thread_id FROM threads WHERE thread_category = " . $this->id; + $sql = "SELECT thread_id FROM threads WHERE thread_category = " . $this->id . " ORDER BY thread_date_lastpost"; $result = mysqli_query($dbc, $sql); if (!$result) { |