Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjosh4trunks <joshruehlig@gmail.com>2014-06-05 10:03:13 +0400
committerjosh4trunks <joshruehlig@gmail.com>2014-06-05 10:03:13 +0400
commitea162c8a39188450636548f4613d96c39cac8a04 (patch)
tree3f1a7f4402cbf366d44e73196a60b1c3e0c06332 /lib/private/db.php
parente77c9bb97ed56d30c08f7d7ea9c06dd80ac9467b (diff)
Fix variable not always being defined.
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;