Code Duplication    Length = 2-2 lines in 3 locations

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!

other/upgrade.php 2 locations

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