Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 651-652 (lines=2) @@
648
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
649
650
	// Sorry... we need CREATE, ALTER and DROP
651
	if (!$create || !$alter || !$drop)
652
		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.');
653
654
	// Do a quick version spot check.
655
	$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
@@ 2365-2366 (lines=2) @@
2362
	$drop = $smcFunc['db_drop_table']('{db_prefix}priv_check');
2363
2364
	// Sorry... we need CREATE, ALTER and DROP
2365
	if (!$create || !$alter || !$drop)
2366
		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);
2367
2368
	$check = @file_exists($modSettings['theme_dir'] . '/index.template.php')
2369
		&& @file_exists($sourcedir . '/QueryString.php')