summaryrefslogtreecommitdiffstats
path: root/lib/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/install.php')
-rw-r--r--lib/install.php5
1 files changed, 5 insertions, 0 deletions
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;