Code Duplication    Length = 8-8 lines in 2 locations

Sources/Search.php 1 location

@@ 190-197 (lines=8) @@
187
188
	// Now, alternate them so they can be shown left and right ;).
189
	$context['board_columns'] = array();
190
	for ($i = 0; $i < $max_boards; $i++)
191
	{
192
		$context['board_columns'][] = $temp_boards[$i];
193
		if (isset($temp_boards[$i + $max_boards]))
194
			$context['board_columns'][] = $temp_boards[$i + $max_boards];
195
		else
196
			$context['board_columns'][] = array();
197
	}
198
199
	if (!empty($_REQUEST['topic']))
200
	{

Sources/Profile-Modify.php 1 location

@@ 2902-2909 (lines=8) @@
2899
2900
	// Now, alternate them so they can be shown left and right ;).
2901
	$context['board_columns'] = array();
2902
	for ($i = 0; $i < $max_boards; $i++)
2903
	{
2904
		$context['board_columns'][] = $temp_boards[$i];
2905
		if (isset($temp_boards[$i + $max_boards]))
2906
			$context['board_columns'][] = $temp_boards[$i + $max_boards];
2907
		else
2908
			$context['board_columns'][] = array();
2909
	}
2910
2911
	loadThemeOptions($memID);
2912
}