]> source.dussan.org Git - nextcloud-server.git/commitdiff
Default to localhost, if nothing is entered.
authorkondou <kondou@ts.unde.re>
Tue, 28 May 2013 15:34:57 +0000 (17:34 +0200)
committerkondou <kondou@ts.unde.re>
Tue, 28 May 2013 15:34:57 +0000 (17:34 +0200)
lib/setup.php

index 7082f0b2afd4dc19e9596ed3694b1c22a0e10c92..b0af0620527e677f6d2ebc9e1405b70cd0af0aaf 100644 (file)
@@ -61,7 +61,7 @@ class OC_Setup {
                                $error[] = $l->t("%s you may not use dots in the database name", array($dbprettyname));
                        }
                        if($dbtype != 'oci' && empty($options['dbhost'])) {
-                               $error[] = $l->t("%s set the database host.", array($dbprettyname));
+                               $options['dbhost'] = 'localhost';
                        }
                }