diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-11-02 12:40:10 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-11-02 14:14:20 +0100 |
commit | 63e3baf0eb37d1d8f6f0b5b46df56a673eafa6fe (patch) | |
tree | 05287a3ceceb4bc779a4d56a16d81cb79ad093ff /phpBB/includes/functions_admin.php | |
parent | bed82bf2bd13ca04cc1572d454eee5ef3a9053a6 (diff) | |
download | forums-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.php | 2 |
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); } |