mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +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 . '
|
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||||
SET user_posts = user_posts + ' . $num_posts . '
|
SET user_posts = user_posts + ' . $num_posts . '
|
||||||
WHERE ' . $db->sql_in_set('user_id', $poster_ids) . '
|
WHERE ' . $db->sql_in_set('user_id', $poster_ids);
|
||||||
AND user_posts >= ' . $num_posts;
|
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user