[ticket/11520] Re-adjust userpost count on topic fork

PHPBB3-11520
This commit is contained in:
Geolim4 2014-08-08 13:48:04 +02:00
parent af67bd3ea5
commit 3825aee130

View file

@ -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']]))