From 7ec6cdb3393b3cdb0dcbe7b4e8b6f82d5aa9c351 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 3 Apr 2008 00:02:22 +0000 Subject: corrected install docs to accuratly reflect how it works, and make it give an error when no password provided during install --- lib/install.php | 5 +++++ templates/show_install_config.inc.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/install.php b/lib/install.php index 838da84f..37e2867f 100644 --- a/lib/install.php +++ b/lib/install.php @@ -106,6 +106,11 @@ function install_insert_db($username,$password,$hostname,$database) { return false; } + if (!strlen($data['database_password'])) { + Error::add('general','Error: Password required for Database creation'); + return false; + } + $data['database_username'] = $username; $data['database_password'] = $password; $data['database_hostname'] = $hostname; diff --git a/templates/show_install_config.inc.php b/templates/show_install_config.inc.php index d68d47bd..ab266495 100644 --- a/templates/show_install_config.inc.php +++ b/templates/show_install_config.inc.php @@ -48,7 +48,7 @@ if (INSTALL != '1') { exit; }

-
+

-- cgit