From 1d799f22c1a8cec5a8dd45a0fdd182c011a6f5f0 Mon Sep 17 00:00:00 2001
From: kondou <kondou@ts.unde.re>
Date: Tue, 28 May 2013 17:34:57 +0200
Subject: [PATCH] Default to localhost, if nothing is entered.

---
 lib/setup.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/setup.php b/lib/setup.php
index 7082f0b2afd..b0af0620527 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -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';
 			}
 		}
 
-- 
GitLab