Code Duplication    Length = 2-2 lines in 4 locations

Sources/Search.php 1 location

@@ 551-552 (lines=2) @@
548
			)
549
		);
550
		$search_params['brd'] = array();
551
		while ($row = $smcFunc['db_fetch_assoc']($request))
552
			$search_params['brd'][] = $row['id_board'];
553
		$smcFunc['db_free_result']($request);
554
555
		// This error should pro'bly only happen for hackers.

Sources/Reports.php 1 location

@@ 760-761 (lines=2) @@
757
		)
758
	);
759
	$boards = array();
760
	while ($row = $smcFunc['db_fetch_assoc']($request))
761
		$boards[$row['id_board']] = $row['name'];
762
	$smcFunc['db_free_result']($request);
763
764
	// Get every moderator.

Sources/Subs-ReportedContent.php 1 location

@@ 296-297 (lines=2) @@
293
			)
294
		);
295
296
		while ($row = $smcFunc['db_fetch_assoc']($request))
297
			$board_names[$row['id_board']] = $row['name'];
298
299
		$smcFunc['db_free_result']($request);
300

Sources/ScheduledTasks.php 1 location

@@ 529-530 (lines=2) @@
526
		)
527
	);
528
	$boards = array();
529
	while ($row = $smcFunc['db_fetch_assoc']($request))
530
		$boards[$row['id_board']] = $row['name'];
531
	$smcFunc['db_free_result']($request);
532
533
	if (empty($boards))