From ea162c8a39188450636548f4613d96c39cac8a04 Mon Sep 17 00:00:00 2001 From: josh4trunks Date: Wed, 4 Jun 2014 23:03:13 -0700 Subject: [PATCH] Fix variable not always being defined. --- lib/private/db.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5