Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 764-765 (lines=2) @@
761
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
762
763
	// Sorry... we need CREATE, ALTER and DROP
764
	if (!$create || !$alter || !$drop)
765
		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.');
766
767
	// Do a quick version spot check.
768
	$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
@@ 2505-2506 (lines=2) @@
2502
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
2503
2504
	// Sorry... we need CREATE, ALTER and DROP
2505
	if (!$create || !$alter || !$drop)
2506
		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);
2507
2508
	$check = @file_exists($modSettings['theme_dir'] . '/index.template.php')
2509
		&& @file_exists($sourcedir . '/QueryString.php')