aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeolim4 <contact@geolim4.com>2014-08-08 13:48:04 +0200
committerGeolim4 <contact@geolim4.com>2014-08-08 17:07:29 +0200
commit3825aee1306d60040677e15e237772e0666dfdd7 (patch)
treeda21000849a34a41f10f462f01c211f10e5f0451
parentaf67bd3ea52ee59324e9446665b5bdbe79158f32 (diff)
downloadforums-3825aee1306d60040677e15e237772e0666dfdd7.tar
forums-3825aee1306d60040677e15e237772e0666dfdd7.tar.gz
forums-3825aee1306d60040677e15e237772e0666dfdd7.tar.bz2
forums-3825aee1306d60040677e15e237772e0666dfdd7.tar.xz
forums-3825aee1306d60040677e15e237772e0666dfdd7.zip
[ticket/11520] Re-adjust userpost count on topic fork
PHPBB3-11520
-rw-r--r--phpBB/includes/mcp/mcp_main.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php
index 25d3e7380f..92000c6ceb 100644
--- a/phpBB/includes/mcp/mcp_main.php
+++ b/phpBB/includes/mcp/mcp_main.php
@@ -1309,8 +1309,7 @@ function mcp_fork_topic($topic_ids)
'post_edit_locked' => (int) $row['post_edit_locked'],
'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
- // 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.
+ // Adjust post count only if the post can be incremented to the user counter
if ($row['post_postcount'])
{
if (isset($counter[$row['poster_id']]))