mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11520] Re-adjust userpost count on topic fork
PHPBB3-11520
This commit is contained in:
parent
af67bd3ea5
commit
3825aee130
1 changed files with 1 additions and 2 deletions
|
@ -1309,8 +1309,7 @@ function mcp_fork_topic($topic_ids)
|
||||||
'post_edit_locked' => (int) $row['post_edit_locked'],
|
'post_edit_locked' => (int) $row['post_edit_locked'],
|
||||||
'post_postcount' => $row['post_postcount'],
|
'post_postcount' => $row['post_postcount'],
|
||||||
);
|
);
|
||||||
// Adjust post count only if the post can be incremented to the user counter else, it was not added the users post count anyway
|
// Adjust post count only if the post can be incremented to the user counter
|
||||||
// Do not do the query here but later, we just increment the count of posts until the loop is finished, then do new posts counters.
|
|
||||||
if ($row['post_postcount'])
|
if ($row['post_postcount'])
|
||||||
{
|
{
|
||||||
if (isset($counter[$row['poster_id']]))
|
if (isset($counter[$row['poster_id']]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue