diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-06-17 10:14:35 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-06-17 10:14:35 +0200 |
commit | ca705af91d1849e17a906990159f52d9667a9346 (patch) | |
tree | 217634f7de61aecf6416f65e80c37de46856f41f | |
parent | c0917c2862921485a5f9c803bcad870a892c3ca4 (diff) | |
parent | 2c281e50e02dfdab47ad8fe41259ceee266a73de (diff) | |
download | forums-ca705af91d1849e17a906990159f52d9667a9346.tar forums-ca705af91d1849e17a906990159f52d9667a9346.tar.gz forums-ca705af91d1849e17a906990159f52d9667a9346.tar.bz2 forums-ca705af91d1849e17a906990159f52d9667a9346.tar.xz forums-ca705af91d1849e17a906990159f52d9667a9346.zip |
Merge pull request #5602 from senky/ticket/16003
[ticket/16003] Fix num_posts sync
-rw-r--r-- | phpBB/includes/functions_posting.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 5b7e0eafd6..c5a7400ddf 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1308,6 +1308,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)) |