summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 16030a20f89..f5fd9fb6ad9 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -67,6 +67,8 @@ class OC_DB {
list($host, $port)=explode(':', $host, 2);
if(!is_int($port)||$port<1||$port>65535) {
$socket=true;
+ } else {
+ $socket=false;
}
} else {
$port=false;