]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix variable not always being defined.
authorjosh4trunks <joshruehlig@gmail.com>
Thu, 5 Jun 2014 06:03:13 +0000 (23:03 -0700)
committerjosh4trunks <joshruehlig@gmail.com>
Thu, 5 Jun 2014 06:03:13 +0000 (23:03 -0700)
lib/private/db.php

index 16030a20f89436fca99c2d20c12e6e4838bbfd83..f5fd9fb6ad94a7e0af54e07267155b378f38142a 100644 (file)
@@ -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;