summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-05-13 19:41:56 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2013-05-13 21:11:38 -0400
commitf661e4f6cf1e159888e16ddbb169c7126899f203 (patch)
treee07587af29ba390fcb5967107ff3adcca00c431b /lib
parenta2fa8d3019aba8a7e5eaee90ddf288ffc76bd663 (diff)
downloadampache-f661e4f6cf1e159888e16ddbb169c7126899f203.tar.gz
ampache-f661e4f6cf1e159888e16ddbb169c7126899f203.tar.bz2
ampache-f661e4f6cf1e159888e16ddbb169c7126899f203.zip
Add a working check for database existence
Fixes GH #21
Diffstat (limited to 'lib')
-rw-r--r--lib/install.lib.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/install.lib.php b/lib/install.lib.php
index eea48e26..a889d65d 100644
--- a/lib/install.lib.php
+++ b/lib/install.lib.php
@@ -125,8 +125,7 @@ function install_insert_db($db_user = null, $db_pass = null, $overwrite = false)
return false;
}
- // FIXME
- $db_exists = false;
+ $db_exists = Dba::read('SHOW TABLES');
if ($db_exists && $_POST['existing_db']) {
// Rien a faire, we've got the db just blow through