Code Duplication    Length = 2-2 lines in 3 locations

other/upgrade.php 2 locations

@@ 243-244 (lines=2) @@
240
			'db_error_skip' => true,
241
		)
242
	);
243
	while ($row = $smcFunc['db_fetch_assoc']($request))
244
		$modSettings[$row['variable']] = $row['value'];
245
	$smcFunc['db_free_result']($request);
246
}
247
@@ 529-530 (lines=2) @@
526
			)
527
		);
528
		$modSettings = array();
529
		while ($row = $smcFunc['db_fetch_assoc']($request))
530
			$modSettings[$row['variable']] = $row['value'];
531
		$smcFunc['db_free_result']($request);
532
	}
533
	else

other/install.php 1 location

@@ 1029-1030 (lines=2) @@
1026
	$modSettings = array();
1027
	if ($result !== false)
1028
	{
1029
		while ($row = $smcFunc['db_fetch_assoc']($result))
1030
			$modSettings[$row['variable']] = $row['value'];
1031
		$smcFunc['db_free_result']($result);
1032
1033
		// Do they match?  If so, this is just a refresh so charge on!