mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[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
This commit is contained in:
parent
c47c50a29e
commit
36dfb95816
1 changed files with 3 additions and 0 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue