aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-10 22:15:29 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-10 22:15:29 +0100
commit7db5eec5d28449af2d313f52b4d4c1c4534ba870 (patch)
tree10b7a02357cfa82e05245443d898bd34db267fc6 /phpBB/includes
parenteb5a6cb006a3b65daca604996a154484bb318221 (diff)
downloadforums-7db5eec5d28449af2d313f52b4d4c1c4534ba870.tar
forums-7db5eec5d28449af2d313f52b4d4c1c4534ba870.tar.gz
forums-7db5eec5d28449af2d313f52b4d4c1c4534ba870.tar.bz2
forums-7db5eec5d28449af2d313f52b4d4c1c4534ba870.tar.xz
forums-7db5eec5d28449af2d313f52b4d4c1c4534ba870.zip
[ticket/9657] Correctly increase users post count when approving posts
PHPBB3-9657
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/content_visibility.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/content_visibility.php b/phpBB/includes/content_visibility.php
index 3118be6574..6ca1f8b25c 100644
--- a/phpBB/includes/content_visibility.php
+++ b/phpBB/includes/content_visibility.php
@@ -309,8 +309,7 @@ class phpbb_content_visibility
{
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_posts = user_posts + ' . $num_posts . '
- WHERE ' . $db->sql_in_set('user_id', $poster_ids) . '
- AND user_posts >= ' . $num_posts;
+ WHERE ' . $db->sql_in_set('user_id', $poster_ids);
$db->sql_query($sql);
}
}