From: josh4trunks Date: Thu, 5 Jun 2014 06:03:13 +0000 (-0700) Subject: Fix variable not always being defined. X-Git-Tag: v7.0.0alpha2~43^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ea162c8a39188450636548f4613d96c39cac8a04;p=nextcloud-server.git Fix variable not always being defined. --- 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;