mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-22 19:07:27 +01:00
[feature/soft-delete] Use the variable which holds the correct item status
PHPBB3-9657
This commit is contained in:
parent
d9a93a9cdc
commit
b774c09c7f
@ -327,7 +327,7 @@ class mcp_queue
|
||||
$sql = 'SELECT p.post_id
|
||||
FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t' . (($sort_order_sql[0] == 'u') ? ', ' . USERS_TABLE . ' u' : '') . '
|
||||
WHERE ' . $db->sql_in_set('p.forum_id', $forum_list) . '
|
||||
AND p.post_visibility = ' . ITEM_UNAPPROVED . '
|
||||
AND p.post_visibility = ' . $visibility_const . '
|
||||
' . (($sort_order_sql[0] == 'u') ? 'AND u.user_id = p.poster_id' : '') . '
|
||||
' . (($topic_id) ? 'AND p.topic_id = ' . $topic_id : '') . "
|
||||
AND t.topic_id = p.topic_id
|
||||
|
Loading…
x
Reference in New Issue
Block a user