]> git.mjollnir.org Git - moodle.git/commitdiff
Merged postgresql fix for install.php
authormoodler <moodler>
Tue, 31 Aug 2004 12:49:43 +0000 (12:49 +0000)
committermoodler <moodler>
Tue, 31 Aug 2004 12:49:43 +0000 (12:49 +0000)
install.php

index fdc346888dd63774c65ce8d46a2059f568c48258..75314f176819c4635345e63cacb774a688e6a778 100644 (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";