mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/soft-delete] Fix missing AND in query
PHPBB3-9657
This commit is contained in:
parent
910f1602cd
commit
d9a93a9cdc
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ if ($post_id)
|
|||
$sql = 'SELECT COUNT(p.post_id) AS prev_posts
|
||||
FROM ' . POSTS_TABLE . " p
|
||||
WHERE p.topic_id = {$topic_data['topic_id']}
|
||||
" . phpbb_content_visibility::get_visibility_sql('post', $forum_id, 'p.');
|
||||
AND " . phpbb_content_visibility::get_visibility_sql('post', $forum_id, 'p.');
|
||||
|
||||
if ($sort_dir == 'd')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue