From 82d5242b029ab6e97fb0789c524991ad259b6d2b Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 18 Mar 2019 13:10:38 +0100 Subject: [PATCH] Accidentally pushed experimental code, fix round 1. --- src/Forum/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forum/post.php b/src/Forum/post.php index e695b1bb..32ef4858 100644 --- a/src/Forum/post.php +++ b/src/Forum/post.php @@ -182,14 +182,14 @@ function forum_post_listing(int $topicId, int $offset = 0, int $take = 0, bool $ ON u.`user_id` = p.`user_id` LEFT JOIN `msz_roles` AS r ON r.`role_id` = u.`display_role` - WHERE `%3$s` = :topic_id + WHERE %3$s = :topic_id %1$s ORDER BY `post_id` %2$s ', $showDeleted ? '' : 'AND `post_deleted` IS NULL', $hasPagination ? 'LIMIT :offset, :take' : '', - $selectAuthor ? 'topic_id' : 'user_id' + $selectAuthor ? 'p.`user_id`' : 'p.`topic_id`' )); $getPosts->bindValue('topic_id', $topicId);