diff options
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 843b4c2c02..bd4a2a96b3 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -210,6 +210,7 @@ if (!($topic_data = $db->sql_fetchrow($result))) trigger_error('NO_TOPIC'); } +$old_forum_id = $forum_id; $forum_id = (int) $topic_data['forum_id']; $topic_id = (int) $topic_data['topic_id']; @@ -1363,6 +1364,12 @@ if (isset($user->data['session_page']) && !preg_match("#&t=$topic_id#", $user->d if (isset($topic_tracking_info[$topic_id]) && $topic_data['topic_last_post_time'] > $topic_tracking_info[$topic_id]) { markread('topic', $forum_id, $topic_id, $max_post_time); + + // The topic has two different forum_id numbers, we have to update the other forum + if ($old_forum_id !== $forum_id) + { + markread('topic', $old_forum_id, $topic_id, $max_post_time); + } } // Change encoding if appropriate |