From ff19e4cfe81a832ddd39cc868d3a5d23e7831eba Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 19 Jan 2009 07:48:48 +0000 Subject: Remove the prefix arg, we don't support it yet. --- installer/installer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'installer/installer.php') diff --git a/installer/installer.php b/installer/installer.php index 50ec97a2..d909c14c 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -114,9 +114,6 @@ class installer { case "-p": $config["password"] = $argv[++$i]; break; - case "-t": - $config["prefix"] = $argv[++$i]; - break; } } @@ -140,7 +137,7 @@ class installer { $config["dbname"]); } - if (mysql_num_rows(mysql_query("SHOW TABLES FROM {$config['dbname']}"))) { + if (empty($errors) && mysql_num_rows(mysql_query("SHOW TABLES FROM {$config['dbname']}"))) { $errors["Database"] = sprintf( "Database '%s' exists and has tables in it, continuing may overwrite an existing install", $config["dbname"]); -- cgit v1.2.3