From 8fa8037b4e98f0e0ea0076280e14ddf1aa6d6ee7 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Sat, 23 Nov 2013 11:03:37 -0800 Subject: [PATCH] [ticket/11963] Delete topic_in_queue notifications in MCP approve_details mode PHPBB3-11963 --- phpBB/includes/mcp/mcp_queue.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index db461d07fa..e5cc1a941b 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -652,6 +652,11 @@ class mcp_queue // Handle notifications foreach ($post_info as $post_id => $post_data) { + // A single topic approval may also happen here, so handle deleting the respective notification. + if (!$post_data['topic_posts_approved']) + { + $phpbb_notifications->delete_notifications('topic_in_queue', $post_data['topic_id']); + } $phpbb_notifications->delete_notifications('post_in_queue', $post_id); $phpbb_notifications->add_notifications(array(