mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9657] Correctly increase users post count when approving posts
PHPBB3-9657
This commit is contained in:
parent
eb5a6cb006
commit
7db5eec5d2
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue