From 7db5eec5d28449af2d313f52b4d4c1c4534ba870 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sun, 10 Mar 2013 22:15:29 +0100 Subject: [PATCH] [ticket/9657] Correctly increase users post count when approving posts PHPBB3-9657 --- phpBB/includes/content_visibility.php | 3 +-- 1 file changed, 1 insertion(+), 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); } }