Accidentally pushed experimental code, fix round 1.
This commit is contained in:
parent
3ce67f6846
commit
82d5242b02
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue