Code Duplication    Length = 2-2 lines in 4 locations

Sources/ScheduledTasks.php 1 location

@@ 542-543 (lines=2) @@
539
		)
540
	);
541
	$boards = array();
542
	while ($row = $smcFunc['db_fetch_assoc']($request))
543
		$boards[$row['id_board']] = $row['name'];
544
	$smcFunc['db_free_result']($request);
545
546
	if (empty($boards))

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/Subs-ReportedContent.php 1 location

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

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.