[ticket/16003] Fix num_posts sync

PHPBB3-16003
This commit is contained in:
Jakub Senko 2019-05-24 15:21:56 +02:00
parent f6beabc593
commit 2c281e50e0
No known key found for this signature in database
GPG key ID: 6A7C328CD66EC21E

View file

@ -1284,6 +1284,7 @@ function delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $
delete_topics('topic_id', array($topic_id), false);
$phpbb_content_visibility->remove_topic_from_statistic($data, $sql_data);
$config->increment('num_posts', -1, false);
$update_sql = update_post_information('forum', $forum_id, true);
if (count($update_sql))