[Pkg-owncloud-commits] [owncloud] 65/223: Don't specify host when using a socket.
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 73062040e68212ac6e92d36211ca0bef91777589
Author: Andreas Fischer <bantu at owncloud.com>
Date: Thu Jun 12 20:22:45 2014 +0200
Don't specify host when using a socket.
---
lib/private/db.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/db.php b/lib/private/db.php
index bc9137f..0e18686 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -78,12 +78,12 @@ class OC_DB {
// Host variable may carry a port or socket.
list($host, $portOrSocket) = explode(':', $host, 2);
if (ctype_digit($portOrSocket)) {
+ $connectionParams['host'] = $host;
$connectionParams['port'] = $portOrSocket;
} else {
$connectionParams['unix_socket'] = $portOrSocket;
}
}
- $connectionParams['host'] = $host;
$connectionParams['dbname'] = $name;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list