aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2019-05-24 15:21:56 +0200
committerJakub Senko <jakubsenko@gmail.com>2019-05-24 15:21:56 +0200
commit2c281e50e02dfdab47ad8fe41259ceee266a73de (patch)
tree7248cfe63dc591fea9c73e7a89907d916842d6fb /phpBB/includes/functions_posting.php
parentf6beabc59354a7b872039403574f8ceb44b6d325 (diff)
downloadforums-2c281e50e02dfdab47ad8fe41259ceee266a73de.tar
forums-2c281e50e02dfdab47ad8fe41259ceee266a73de.tar.gz
forums-2c281e50e02dfdab47ad8fe41259ceee266a73de.tar.bz2
forums-2c281e50e02dfdab47ad8fe41259ceee266a73de.tar.xz
forums-2c281e50e02dfdab47ad8fe41259ceee266a73de.zip
[ticket/16003] Fix num_posts sync
PHPBB3-16003
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 3640f543d9..0260e2abda 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -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))