aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-23 15:30:52 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-23 16:59:33 +0200
commit43e6b3a921d45150cd5c2a931e3e14758081f321 (patch)
treee4c18a4bcb71ad024e0b072b1dcc8ba0e0aa15ea /phpBB/includes/functions_posting.php
parentfec72c4b782cda044b9a05122530f3a32213b407 (diff)
downloadforums-43e6b3a921d45150cd5c2a931e3e14758081f321.tar
forums-43e6b3a921d45150cd5c2a931e3e14758081f321.tar.gz
forums-43e6b3a921d45150cd5c2a931e3e14758081f321.tar.bz2
forums-43e6b3a921d45150cd5c2a931e3e14758081f321.tar.xz
forums-43e6b3a921d45150cd5c2a931e3e14758081f321.zip
[feature/soft-delete] Fix some more topic/post count handling
Only disapproving in queue is missing. PHPBB3-9567
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 7962690ca8..473149a8ec 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1491,8 +1491,7 @@ function delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $
// counting is fun! we only have to do sizeof($forum_ids) number of queries,
// even if the topic is moved back to where its shadow lives (we count how many times it is in a forum)
$sql = 'UPDATE ' . FORUMS_TABLE . '
- SET forum_topics_real = forum_topics_real - ' . $topic_count . ',
- forum_topics = forum_topics - ' . $topic_count . '
+ SET forum_topics = forum_topics - ' . $topic_count . '
WHERE forum_id = ' . $updated_forum;
$db->sql_query($sql);
update_post_information('forum', $updated_forum);