Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 653-654 (lines=2) @@
650
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
651
652
	// Sorry... we need CREATE, ALTER and DROP
653
	if (!$create || !$alter || !$drop)
654
		return throw_error('The ' . $databases[$db_type]['name'] . ' user you have set in Settings.php does not have proper privileges.<br><br>Please ask your host to give this user the ALTER, CREATE, and DROP privileges.');
655
656
	// Do a quick version spot check.
657
	$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
@@ 2372-2373 (lines=2) @@
2369
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
2370
2371
	// Sorry... we need CREATE, ALTER and DROP
2372
	if (!$create || !$alter || !$drop)
2373
		print_error("The " . $databases[$db_type]['name'] . " user you have set in Settings.php does not have proper privileges.\n\nPlease ask your host to give this user the ALTER, CREATE, and DROP privileges.", true);
2374
2375
	$check = @file_exists($modSettings['theme_dir'] . '/index.template.php')
2376
		&& @file_exists($sourcedir . '/QueryString.php')