aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-11-06 15:47:20 +0100
committerTristan Darricau <github@nicofuma.fr>2016-11-06 15:47:20 +0100
commit9be9062df358aa6744b5764ac841a6b685d3ad6a (patch)
tree431fd59bdb0bad943eccdadf4f69fc8e37eec78b /phpBB/includes
parentdc32b900c58943df25ae5085c96ad47fc6e67c61 (diff)
parentfce30d1d91d7e1e4a2c2989640d5c5176e7fada0 (diff)
downloadforums-9be9062df358aa6744b5764ac841a6b685d3ad6a.tar
forums-9be9062df358aa6744b5764ac841a6b685d3ad6a.tar.gz
forums-9be9062df358aa6744b5764ac841a6b685d3ad6a.tar.bz2
forums-9be9062df358aa6744b5764ac841a6b685d3ad6a.tar.xz
forums-9be9062df358aa6744b5764ac841a6b685d3ad6a.zip
Merge pull request #4485 from marc1706/ticket/14795
[ticket/14795] Use maximum topic views instead of adding up views in merge * github.com:phpbb/phpbb: [ticket/14795] Use maximum topic views instead of adding up views in merge
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_forum.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php
index 7df712f65f..5e4dce2de7 100644
--- a/phpBB/includes/mcp/mcp_forum.php
+++ b/phpBB/includes/mcp/mcp_forum.php
@@ -424,7 +424,7 @@ function merge_topics($forum_id, $topic_ids, $to_topic_id)
foreach ($topic_data as $data)
{
$sync_forums[$data['forum_id']] = $data['forum_id'];
- $topic_views += $data['topic_views'];
+ $topic_views = max($topic_views, $data['topic_views']);
}
$topic_data = $topic_data[$to_topic_id];