Code Duplication    Length = 4-4 lines in 2 locations

SSI.php 2 locations

@@ 284-287 (lines=4) @@
281
	global $modSettings, $context;
282
283
	// Excluding certain boards...
284
	if ($exclude_boards === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
285
		$exclude_boards = array($modSettings['recycle_board']);
286
	else
287
		$exclude_boards = empty($exclude_boards) ? array() : (is_array($exclude_boards) ? $exclude_boards : array($exclude_boards));
288
289
	// What about including certain boards - note we do some protection here as pre-2.0 didn't have this parameter.
290
	if (is_array($include_boards) || (int) $include_boards === $include_boards)
@@ 484-487 (lines=4) @@
481
	global $settings, $scripturl, $txt, $user_info;
482
	global $modSettings, $smcFunc, $context;
483
484
	if ($exclude_boards === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
485
		$exclude_boards = array($modSettings['recycle_board']);
486
	else
487
		$exclude_boards = empty($exclude_boards) ? array() : (is_array($exclude_boards) ? $exclude_boards : array($exclude_boards));
488
489
	// Only some boards?.
490
	if (is_array($include_boards) || (int) $include_boards === $include_boards)