Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

@@ 1056-1057 (lines=2) @@
1053
	$modSettings = array();
1054
	if ($result !== false)
1055
	{
1056
		while ($row = $smcFunc['db_fetch_assoc']($result))
1057
			$modSettings[$row['variable']] = $row['value'];
1058
		$smcFunc['db_free_result']($result);
1059
1060
		// Do they match?  If so, this is just a refresh so charge on!

other/upgrade.php 2 locations

@@ 202-203 (lines=2) @@
199
			'db_error_skip' => true,
200
		)
201
	);
202
	while ($row = $smcFunc['db_fetch_assoc']($request))
203
		$modSettings[$row['variable']] = $row['value'];
204
	$smcFunc['db_free_result']($request);
205
}
206
@@ 505-506 (lines=2) @@
502
			)
503
		);
504
		$modSettings = array();
505
		while ($row = $smcFunc['db_fetch_assoc']($request))
506
			$modSettings[$row['variable']] = $row['value'];
507
		$smcFunc['db_free_result']($request);
508
	}
509
	else