Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

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

other/upgrade.php 2 locations

@@ 193-194 (lines=2) @@
190
			'db_error_skip' => true,
191
		)
192
	);
193
	while ($row = $smcFunc['db_fetch_assoc']($request))
194
		$modSettings[$row['variable']] = $row['value'];
195
	$smcFunc['db_free_result']($request);
196
}
197
@@ 491-492 (lines=2) @@
488
			)
489
		);
490
		$modSettings = array();
491
		while ($row = $smcFunc['db_fetch_assoc']($request))
492
			$modSettings[$row['variable']] = $row['value'];
493
		$smcFunc['db_free_result']($request);
494
	}
495
	else