Code Duplication    Length = 2-2 lines in 3 locations

other/install.php 1 location

@@ 1016-1017 (lines=2) @@
1013
	$modSettings = array();
1014
	if ($result !== false)
1015
	{
1016
		while ($row = $smcFunc['db_fetch_assoc']($result))
1017
			$modSettings[$row['variable']] = $row['value'];
1018
		$smcFunc['db_free_result']($result);
1019
1020
		// Do they match?  If so, this is just a refresh so charge on!

other/upgrade.php 2 locations

@@ 193-194 (lines=2) @@
190
			'db_error_skip' => true,
191
		)
192
	);
193
	while ($row = $smcFunc['db_fetch_assoc']($request))
194
		$modSettings[$row['variable']] = $row['value'];
195
	$smcFunc['db_free_result']($request);
196
}
197
@@ 487-488 (lines=2) @@
484
			)
485
		);
486
		$modSettings = array();
487
		while ($row = $smcFunc['db_fetch_assoc']($request))
488
			$modSettings[$row['variable']] = $row['value'];
489
		$smcFunc['db_free_result']($request);
490
	}
491
	else