Code Duplication    Length = 4-4 lines in 2 locations

Sources/News.php 2 locations

@@ 799-802 (lines=4) @@
796
		if ($loops < 2 && $smcFunc['db_num_rows']($request) < $_GET['limit'])
797
		{
798
			$smcFunc['db_free_result']($request);
799
			if (empty($_REQUEST['boards']) && empty($board))
800
				unset($context['optimize_msg']['lowest']);
801
			else
802
				$context['optimize_msg']['lowest'] = 'm.id_msg >= t.id_first_msg';
803
			$context['optimize_msg']['highest'] = 'm.id_msg <= t.id_last_msg';
804
			$loops++;
805
		}
@@ 1178-1181 (lines=4) @@
1175
		if ($loops < 2 && $smcFunc['db_num_rows']($request) < $_GET['limit'])
1176
		{
1177
			$smcFunc['db_free_result']($request);
1178
			if (empty($_REQUEST['boards']) && empty($board))
1179
				unset($context['optimize_msg']['lowest']);
1180
			else
1181
				$context['optimize_msg']['lowest'] = $loops ? 'm.id_msg >= t.id_first_msg' : 'm.id_msg >= (t.id_last_msg - t.id_first_msg) / 2';
1182
			$loops++;
1183
		}
1184
		else