summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-06-12 20:18:38 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-06-12 20:18:38 +0200
commit09327603045566f51ece009a43a74fc4987edd93 (patch)
tree873490f15a04e8cf2d0b611d9ac53a90e730ef7a /lib/private/db.php
parent3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a (diff)
downloadnextcloud-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.php8
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;