Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

@@ 1069-1070 (lines=2) @@
1066
	$modSettings = array();
1067
	if ($result !== false)
1068
	{
1069
		while ($row = $smcFunc['db_fetch_assoc']($result))
1070
			$modSettings[$row['variable']] = $row['value'];
1071
		$smcFunc['db_free_result']($result);
1072
1073
		// Do they match?  If so, this is just a refresh so charge on!

other/upgrade.php 2 locations

@@ 207-208 (lines=2) @@
204
			'db_error_skip' => true,
205
		)
206
	);
207
	while ($row = $smcFunc['db_fetch_assoc']($request))
208
		$modSettings[$row['variable']] = $row['value'];
209
	$smcFunc['db_free_result']($request);
210
}
211
@@ 597-598 (lines=2) @@
594
			)
595
		);
596
		$modSettings = array();
597
		while ($row = $smcFunc['db_fetch_assoc']($request))
598
			$modSettings[$row['variable']] = $row['value'];
599
		$smcFunc['db_free_result']($request);
600
	}
601
	else