summaryrefslogtreecommitdiffstats
path: root/lib/debug.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-20 07:28:52 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-20 07:28:52 +0000
commita3a19ed1ff4c14297a9418c6462bf7e1f373ab56 (patch)
tree190b4489a3c21272f74e04b5975c7eeb1423233b /lib/debug.php
parent7a0fcdd836d491c288b94383ebc54de2271bb237 (diff)
downloadampache-a3a19ed1ff4c14297a9418c6462bf7e1f373ab56.tar.gz
ampache-a3a19ed1ff4c14297a9418c6462bf7e1f373ab56.tar.bz2
ampache-a3a19ed1ff4c14297a9418c6462bf7e1f373ab56.zip
fixed installer so that it works with new auth
Diffstat (limited to 'lib/debug.php')
-rw-r--r--lib/debug.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/debug.php b/lib/debug.php
index 45531457..db8f08ea 100644
--- a/lib/debug.php
+++ b/lib/debug.php
@@ -50,7 +50,7 @@ function read_config_file($file,$level=0) {
@discussion checks the local mysql db
and make sure life is good
*/
-function check_database($host,$username,$pass,$db,$level=0) {
+function check_database($host,$username,$pass,$level=0) {
$dbh = @mysql_connect($host, $username, $pass);
@@ -62,10 +62,9 @@ function check_database($host,$username,$pass,$db,$level=0) {
$error['error_state'] = true;
$error['mysql_error'] .= "<br />HOST:$host<br />User:$username<br />Pass:$pass<br />";
}
-print_r($error);
+
if ($error['error_state']) { return false; }
-
return $dbh;
} // check_database