aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cron/controller/cron.php
diff options
context:
space:
mode:
authorDerky <derky@phpbb.com>2019-04-26 12:08:37 +0200
committerDerky <derky@phpbb.com>2019-04-26 12:11:52 +0200
commitb8368980162392bf9f97496ecec18abe2bd34fad (patch)
treeac2c5ba156d76c26df7336c21c3ab22cb976ff35 /phpBB/phpbb/cron/controller/cron.php
parent507efee633fee769e7e2af4a2b298c951193f800 (diff)
downloadforums-b8368980162392bf9f97496ecec18abe2bd34fad.tar
forums-b8368980162392bf9f97496ecec18abe2bd34fad.tar.gz
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
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r--Diffstat (limited to 'phpBB/phpbb/cron/controller/cron.php')
0 files changed, 0 insertions, 0 deletions
-- 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++;
}
}