Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 655-656 (lines=2) @@
652
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
653
654
	// Sorry... we need CREATE, ALTER and DROP
655
	if (!$create || !$alter || !$drop)
656
		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.');
657
658
	// Do a quick version spot check.
659
	$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
@@ 2371-2372 (lines=2) @@
2368
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
2369
2370
	// Sorry... we need CREATE, ALTER and DROP
2371
	if (!$create || !$alter || !$drop)
2372
		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);
2373
2374
	$check = @file_exists($modSettings['theme_dir'] . '/index.template.php')
2375
		&& @file_exists($sourcedir . '/QueryString.php')