mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[feature/soft-delete] Fix a problem with "delete topics" in mcp
PHPBB3-9657
This commit is contained in:
@@ -71,9 +71,10 @@ class mcp_queue
|
|||||||
{
|
{
|
||||||
if (!empty($topic_id_list))
|
if (!empty($topic_id_list))
|
||||||
{
|
{
|
||||||
|
$post_visibility = ($mode == 'deleted_topics') ? ITEM_DELETED : ITEM_UNAPPROVED;
|
||||||
$sql = 'SELECT post_id
|
$sql = 'SELECT post_id
|
||||||
FROM ' . POSTS_TABLE . '
|
FROM ' . POSTS_TABLE . '
|
||||||
WHERE post_visibility = ' . ITEM_UNAPPROVED . '
|
WHERE post_visibility = ' . $post_visibility . '
|
||||||
AND ' . $db->sql_in_set('topic_id', $topic_id_list);
|
AND ' . $db->sql_in_set('topic_id', $topic_id_list);
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user