Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

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

other/upgrade.php 2 locations

@@ 195-196 (lines=2) @@
192
			'db_error_skip' => true,
193
		)
194
	);
195
	while ($row = $smcFunc['db_fetch_assoc']($request))
196
		$modSettings[$row['variable']] = $row['value'];
197
	$smcFunc['db_free_result']($request);
198
}
199
@@ 481-482 (lines=2) @@
478
			)
479
		);
480
		$modSettings = array();
481
		while ($row = $smcFunc['db_fetch_assoc']($request))
482
			$modSettings[$row['variable']] = $row['value'];
483
		$smcFunc['db_free_result']($request);
484
	}
485
	else