diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-31 09:55:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-31 09:55:57 +0000 |
commit | 65a51e7408ee5d2a2035bd4097b8157e511f77dd (patch) | |
tree | 6a878e0362e135b0135375afe3bf98c6c5cbf297 /lib/install.php | |
parent | fb3f5189882db644e443ebaf4e5e1efdb84d4348 (diff) | |
download | ampache-65a51e7408ee5d2a2035bd4097b8157e511f77dd.tar.gz ampache-65a51e7408ee5d2a2035bd4097b8157e511f77dd.tar.bz2 ampache-65a51e7408ee5d2a2035bd4097b8157e511f77dd.zip |
fixed a few more glitches with the installer
Diffstat (limited to 'lib/install.php')
-rw-r--r-- | lib/install.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/install.php b/lib/install.php index e0a4492a..c3c1c8b4 100644 --- a/lib/install.php +++ b/lib/install.php @@ -240,10 +240,8 @@ function install_create_account($username,$password) { $sql = "INSERT INTO user (`username`,`password`,`offset_limit`,`access`) VALUES ('$username',PASSWORD('$password'),'50','admin')"; $db_results = mysql_query($sql, $dbh); - $insert_id = mysql_insert_id($dbh); - - if (!$insert_id) { - $GLOBALS['error']->add_error('general',"Insert of Base User Failed, Check test.php"); + if (!$db_results) { + $GLOBALS['error']->add_error('general',"Insert of Base User Failed " . mysql_error()); return false; } |