[Pkg-owncloud-commits] [owncloud] 64/223: Rename variable to indicate that it can be port and socket.

David Prévot taffit at moszumanska.debian.org
Sun Jun 22 01:54:06 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 09327603045566f51ece009a43a74fc4987edd93
Author: Andreas Fischer <bantu at owncloud.com>
Date:   Thu Jun 12 20:18:38 2014 +0200

    Rename variable to indicate that it can be port and socket.
---
 lib/private/db.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/private/db.php b/lib/private/db.php
index e911abd..bc9137f 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;

-- 
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