[ticket/9657] Correctly increase users post count when approving posts

PHPBB3-9657
This commit is contained in:
Joas Schilling 2013-03-10 22:15:29 +01:00
parent eb5a6cb006
commit 7db5eec5d2

View file

@ -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);
}
}