From: moodler Date: Tue, 31 Aug 2004 12:49:43 +0000 (+0000) Subject: Merged postgresql fix for install.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc157df31ada68517f873b22f6f5ee993e267573;p=moodle.git Merged postgresql fix for install.php --- diff --git a/install.php b/install.php index fdc346888d..75314f1768 100644 --- a/install.php +++ b/install.php @@ -281,7 +281,7 @@ if ($nextstage == 5) { $str .= '$CFG->dbtype = \''.$INSTALL['dbtype']."';\r\n"; $str .= '$CFG->dbhost = \''.$INSTALL['dbhost']."';\r\n"; - if ($INSTALL['dbtype'] == 'mysql') { + if (empty($INSTALL['dbname'])) { $str .= '$CFG->dbname = \''.$INSTALL['dbname']."';\r\n"; $str .= '$CFG->dbuser = \''.$INSTALL['dbuser']."';\r\n"; $str .= '$CFG->dbpass = \''.$INSTALL['dbpass']."';\r\n";