Merged postgresql fix for install.php

This commit is contained in:
moodler 2004-08-31 12:49:43 +00:00
parent a8e44ce43f
commit dc157df31a

View File

@ -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";