mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 17:27:16 +02:00
[ticket/9657] Correctly increase users post count when approving posts
PHPBB3-9657
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user