summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-03 00:02:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-03 00:02:22 +0000
commit7ec6cdb3393b3cdb0dcbe7b4e8b6f82d5aa9c351 (patch)
tree27b71a60bfff9e3bf002b2cfa9202f1abd89bb17 /lib
parent2544f5b5629d36658f92d4d0ad111563c2442f1b (diff)
downloadampache-7ec6cdb3393b3cdb0dcbe7b4e8b6f82d5aa9c351.tar.gz
ampache-7ec6cdb3393b3cdb0dcbe7b4e8b6f82d5aa9c351.tar.bz2
ampache-7ec6cdb3393b3cdb0dcbe7b4e8b6f82d5aa9c351.zip
corrected install docs to accuratly reflect how it works, and make it give an error when no password provided during install
Diffstat (limited to 'lib')
-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;