Code Duplication    Length = 2-2 lines in 2 locations

Sources/Display.php 2 locations

@@ 1051-1052 (lines=2) @@
1048
			$context['my_likes'] = $context['user']['is_guest'] ? array() : prepareLikesContext($topic);
1049
1050
		// Go to the last message if the given time is beyond the time of the last message.
1051
		if (isset($context['start_from']) && $context['start_from'] >= $context['topicinfo']['num_replies'])
1052
			$context['start_from'] = $context['topicinfo']['num_replies'];
1053
1054
		// Since the anchor information is needed on the top of the page we load these variables beforehand.
1055
		$context['first_message'] = isset($messages[$firstIndex]) ? $messages[$firstIndex] : $messages[0];
@@ 1058-1059 (lines=2) @@
1055
		$context['first_message'] = isset($messages[$firstIndex]) ? $messages[$firstIndex] : $messages[0];
1056
		if (empty($options['view_newest_first']))
1057
			$context['first_new_message'] = isset($context['start_from']) && $_REQUEST['start'] == $context['start_from'];
1058
		else
1059
			$context['first_new_message'] = isset($context['start_from']) && $_REQUEST['start'] == $context['topicinfo']['num_replies'] - $context['start_from'];
1060
	}
1061
	else
1062
	{