Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

@@ 1005-1006 (lines=2) @@
1002
	$modSettings = array();
1003
	if ($result !== false)
1004
	{
1005
		while ($row = $smcFunc['db_fetch_assoc']($result))
1006
			$modSettings[$row['variable']] = $row['value'];
1007
		$smcFunc['db_free_result']($result);
1008
1009
		// Do they match?  If so, this is just a refresh so charge on!

other/upgrade.php 2 locations

@@ 190-191 (lines=2) @@
187
			'db_error_skip' => true,
188
		)
189
	);
190
	while ($row = $smcFunc['db_fetch_assoc']($request))
191
		$modSettings[$row['variable']] = $row['value'];
192
	$smcFunc['db_free_result']($request);
193
}
194
@@ 475-476 (lines=2) @@
472
			)
473
		);
474
		$modSettings = array();
475
		while ($row = $smcFunc['db_fetch_assoc']($request))
476
			$modSettings[$row['variable']] = $row['value'];
477
		$smcFunc['db_free_result']($request);
478
	}
479
	else