Merge pull request #9067 from owncloud/pass-db-hostname

Obviously have to pass the hostname as is when there is no ':' in the hostname
This commit is contained in:
Vincent Petry 2014-06-17 15:56:52 +02:00
commit c5e33f5172
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}