aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-11-02 12:40:10 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-11-02 14:14:20 +0100
commit63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe (patch)
tree05287a3ceceb4bc779a4d56a16d81cb79ad093ff /phpBB/includes/functions_admin.php
parentbed82bf2bd13ca04cc1572d454eee5ef3a9053a6 (diff)
downloadforums-63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe.tar
forums-63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe.tar.gz
forums-63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe.tar.bz2
forums-63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe.tar.xz
forums-63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe.zip
[feature/soft-delete] Correctly manage softdeleting via posting.php
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index e2a133270b..f1c3cf62b1 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -881,7 +881,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
sync('forum', 'forum_id', $forum_ids, true, true);
}
- if ($approved_posts)
+ if ($approved_posts && $post_count_sync)
{
set_config_count('num_posts', $approved_posts * (-1), true);
}