Code Duplication    Length = 2-2 lines in 3 locations

other/upgrade.php 2 locations

@@ 199-200 (lines=2) @@
196
			'db_error_skip' => true,
197
		)
198
	);
199
	while ($row = $smcFunc['db_fetch_assoc']($request))
200
		$modSettings[$row['variable']] = $row['value'];
201
	$smcFunc['db_free_result']($request);
202
}
203
@@ 497-498 (lines=2) @@
494
			)
495
		);
496
		$modSettings = array();
497
		while ($row = $smcFunc['db_fetch_assoc']($request))
498
			$modSettings[$row['variable']] = $row['value'];
499
		$smcFunc['db_free_result']($request);
500
	}
501
	else

other/install.php 1 location

@@ 1023-1024 (lines=2) @@
1020
	$modSettings = array();
1021
	if ($result !== false)
1022
	{
1023
		while ($row = $smcFunc['db_fetch_assoc']($result))
1024
			$modSettings[$row['variable']] = $row['value'];
1025
		$smcFunc['db_free_result']($result);
1026
1027
		// Do they match?  If so, this is just a refresh so charge on!