From 36dfb95816d66a14533e2a1913154bde377b100c Mon Sep 17 00:00:00 2001 From: marcosbc Date: Sat, 24 May 2014 14:06:23 +0200 Subject: [PATCH] [ticket/12270] Fixed topic counting bug and tests Topics was not correctly counted (the counter didn't count topics that were re-approved, for example, but only the ones that were unapproved. This should also fix the test that wasn't working correctly. PHPBB3-12270 --- phpBB/includes/mcp/mcp_queue.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index ff230af1e6..5f96d5952b 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -656,6 +656,9 @@ class mcp_queue if ($post_data['post_visibility'] == ITEM_UNAPPROVED) { $phpbb_notifications->add_notifications(array('topic'), $post_data); + } + if ($post_data['post_visibility'] != ITEM_APPROVED) + { $num_topics++; } }