Code Duplication    Length = 4-4 lines in 2 locations

Sources/News.php 2 locations

@@ 820-823 (lines=4) @@
817
		if ($loops < 2 && $smcFunc['db_num_rows']($request) < $_GET['limit'])
818
		{
819
			$smcFunc['db_free_result']($request);
820
			if (empty($_REQUEST['boards']) && empty($board))
821
				unset($context['optimize_msg']['lowest']);
822
			else
823
				$context['optimize_msg']['lowest'] = 'm.id_msg >= t.id_first_msg';
824
			$context['optimize_msg']['highest'] = 'm.id_msg <= t.id_last_msg';
825
			$loops++;
826
		}
@@ 1205-1208 (lines=4) @@
1202
		if ($loops < 2 && $smcFunc['db_num_rows']($request) < $_GET['limit'])
1203
		{
1204
			$smcFunc['db_free_result']($request);
1205
			if (empty($_REQUEST['boards']) && empty($board))
1206
				unset($context['optimize_msg']['lowest']);
1207
			else
1208
				$context['optimize_msg']['lowest'] = $loops ? 'm.id_msg >= t.id_first_msg' : 'm.id_msg >= (t.id_last_msg - t.id_first_msg) / 2';
1209
			$loops++;
1210
		}
1211
		else