diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-06-12 20:22:45 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-06-12 20:22:45 +0200 |
commit | 73062040e68212ac6e92d36211ca0bef91777589 (patch) | |
tree | 5402a29e746e6980f3e749f6d9377b08be49f68c /lib/private/db.php | |
parent | 09327603045566f51ece009a43a74fc4987edd93 (diff) | |
download | nextcloud-server-73062040e68212ac6e92d36211ca0bef91777589.tar.gz nextcloud-server-73062040e68212ac6e92d36211ca0bef91777589.zip |
Don't specify host when using a socket.
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db.php b/lib/private/db.php index bc9137fefd3..0e18686ae95 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; } |