Code Duplication    Length = 2-2 lines in 3 locations

other/upgrade.php 2 locations

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

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!