Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

@@ 1005-1006 (lines=2) @@
1002
	$modSettings = array();
1003
	if ($result !== false)
1004
	{
1005
		while ($row = $smcFunc['db_fetch_assoc']($result))
1006
			$modSettings[$row['variable']] = $row['value'];
1007
		$smcFunc['db_free_result']($result);
1008
1009
		// Do they match?  If so, this is just a refresh so charge on!

other/upgrade.php 2 locations

@@ 586-587 (lines=2) @@
583
			'db_error_skip' => true,
584
		)
585
	);
586
	while ($row = $smcFunc['db_fetch_assoc']($request))
587
		$modSettings[$row['variable']] = $row['value'];
588
	$smcFunc['db_free_result']($request);
589
}
590
@@ 870-871 (lines=2) @@
867
			)
868
		);
869
		$modSettings = array();
870
		while ($row = $smcFunc['db_fetch_assoc']($request))
871
			$modSettings[$row['variable']] = $row['value'];
872
		$smcFunc['db_free_result']($request);
873
	}
874
	else