From 1e5f8138b87c1f4330cdc9393e5e6b94bea8ad6a Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 11 Jul 2011 16:12:13 +0000 Subject: [PATCH] 2011-07-11 Juan Manuel Ramon * install.php: Fixed installation over a new database. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4546 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/install.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bb3a6f7591..a45bab78d5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-07-11 Juan Manuel Ramon + + * install.php: Fixed installation over a new database. + 2011-07-11 Ramon Novoa * include/functions_reporting.php, diff --git a/pandora_console/install.php b/pandora_console/install.php index dd22846b16..a3546059e2 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -701,7 +701,7 @@ function install_step4() { } // Create schema - if ($dbaction != 'db_exist' || $dbdrop == 1){ + if ($dbaction == 'db_new' || $dbdrop == 1){ $step1 = mysql_query ("CREATE DATABASE $dbname"); check_generic ($step1, "Creating database '$dbname'"); }