diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-06-12 20:18:38 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-06-12 20:18:38 +0200 |
commit | 09327603045566f51ece009a43a74fc4987edd93 (patch) | |
tree | 873490f15a04e8cf2d0b611d9ac53a90e730ef7a /lib/private/db.php | |
parent | 3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a (diff) | |
download | nextcloud-server-09327603045566f51ece009a43a74fc4987edd93.tar.gz nextcloud-server-09327603045566f51ece009a43a74fc4987edd93.zip |
Rename variable to indicate that it can be port and socket.
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/db.php b/lib/private/db.php index e911abd5f8b..bc9137fefd3 100644 --- a/lib/private/db.php +++ b/lib/private/db.php @@ -76,11 +76,11 @@ class OC_DB { $host = OC_Config::getValue('dbhost', ''); if (strpos($host, ':')) { // Host variable may carry a port or socket. - list($host, $socket) = explode(':', $host, 2); - if (ctype_digit($socket)) { - $connectionParams['port'] = $socket; + list($host, $portOrSocket) = explode(':', $host, 2); + if (ctype_digit($portOrSocket)) { + $connectionParams['port'] = $portOrSocket; } else { - $connectionParams['unix_socket'] = $socket; + $connectionParams['unix_socket'] = $portOrSocket; } } $connectionParams['host'] = $host; |