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

@@ 2797-2804 (lines=8) @@
2794
2795
	// Now, alternate them so they can be shown left and right ;).
2796
	$context['board_columns'] = array();
2797
	for ($i = 0; $i < $max_boards; $i++)
2798
	{
2799
		$context['board_columns'][] = $temp_boards[$i];
2800
		if (isset($temp_boards[$i + $max_boards]))
2801
			$context['board_columns'][] = $temp_boards[$i + $max_boards];
2802
		else
2803
			$context['board_columns'][] = array();
2804
	}
2805
2806
	loadThemeOptions($memID);
2807
}