]> git.mjollnir.org Git - moodle.git/commitdiff
Dammit ... editing too fast
authormoodler <moodler>
Tue, 31 Aug 2004 12:53:51 +0000 (12:53 +0000)
committermoodler <moodler>
Tue, 31 Aug 2004 12:53:51 +0000 (12:53 +0000)
install.php

index 75314f176819c4635345e63cacb774a688e6a778..a11b28405a4e835393e6cf3158e69a9fd7d4af6b 100644 (file)
@@ -281,7 +281,7 @@ if ($nextstage == 5) {
 
     $str .= '$CFG->dbtype    = \''.$INSTALL['dbtype']."';\r\n";
     $str .= '$CFG->dbhost    = \''.$INSTALL['dbhost']."';\r\n";
-    if (empty($INSTALL['dbname'])) {
+    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";