summaryrefslogtreecommitdiffstats
path: root/lib/install.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-24 06:32:17 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-24 06:32:17 +0000
commit74ff21838d600bc36014953db8e6c51db7ce33a4 (patch)
treea9e982401f0c7e0a8027e4a9336eea780cbedf12 /lib/install.php
parentf6ea76097eec3f0b5d39d5e6320242a743f74ac1 (diff)
downloadampache-74ff21838d600bc36014953db8e6c51db7ce33a4.tar.gz
ampache-74ff21838d600bc36014953db8e6c51db7ce33a4.tar.bz2
ampache-74ff21838d600bc36014953db8e6c51db7ce33a4.zip
changed alpha4 to beta1, updated translation base files, corrected mysql_auth logic
Diffstat (limited to 'lib/install.php')
-rw-r--r--lib/install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.php b/lib/install.php
index 3afd8aee..1c5a7317 100644
--- a/lib/install.php
+++ b/lib/install.php
@@ -157,7 +157,7 @@ function install_insert_db($username,$password,$hostname,$database) {
$db_results = @mysql_query($sql,$dbh);
$data = mysql_fetch_assoc($db_results,$dbh);
- $mysql_version = substr(preg_replace("/(\d+)\.(\d+)\.(\d+).*/","$1$2$3",$version[0]),0,3);
+ $mysql_version = substr(preg_replace("/(\d+)\.(\d+)\.(\d+).*/","$1$2$3",$data[0]),0,3);
$sql_file = ($mysql_version < '500') ? 'sql/ampache40.sql' : 'sql/ampache.sql';