Code Duplication    Length = 2-2 lines in 2 locations

Sources/Recent.php 1 location

@@ 427-428 (lines=2) @@
424
			$boards = boardsAllowedTo($permission);
425
426
			// If 0 is the only thing in the array, they can do it everywhere!
427
			if (!empty($boards) && $boards[0] == 0)
428
				$boards = array_keys($board_ids[$type]);
429
430
			// Go through the boards, and look for posts they can do this on.
431
			foreach ($boards as $board_id)

Sources/Profile-View.php 1 location

@@ 763-764 (lines=2) @@
760
			$boards = boardsAllowedTo($permission);
761
762
			// Hmm, they can do it on all boards, can they?
763
			if (!empty($boards) && $boards[0] == 0)
764
				$boards = array_keys($board_ids[$type]);
765
766
			// Now go through each board they can do the permission on.
767
			foreach ($boards as $board_id)