Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 757-758 (lines=2) @@
754
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
755
756
	// Sorry... we need CREATE, ALTER and DROP
757
	if (!$create || !$alter || !$drop)
758
		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.');
759
760
	// Do a quick version spot check.
761
	$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
@@ 2498-2499 (lines=2) @@
2495
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
2496
2497
	// Sorry... we need CREATE, ALTER and DROP
2498
	if (!$create || !$alter || !$drop)
2499
		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);
2500
2501
	$check = @file_exists($modSettings['theme_dir'] . '/index.template.php')
2502
		&& @file_exists($sourcedir . '/QueryString.php')