[Pkg-owncloud-commits] [owncloud] 59/223: Inline $port expression, getting rid of $port variable.
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 6da2beeaff40be812fa1a5fcb125156c6a3a33c3
Author: Andreas Fischer <bantu at owncloud.com>
Date: Thu Jun 12 19:48:37 2014 +0200
Inline $port expression, getting rid of $port variable.
---
lib/private/db.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/private/db.php b/lib/private/db.php
index eec2b92..d3bf8c0 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -65,7 +65,6 @@ class OC_DB {
$type = OC_Config::getValue( "dbtype", "sqlite" );
if(strpos($host, ':')) {
list($host, $socket)=explode(':', $host, 2);
- $port = ctype_digit($socket) && $socket<=65535;
} else {
$socket=FALSE;
}
@@ -90,7 +89,7 @@ class OC_DB {
'dbname' => $name,
);
if ($socket) {
- if ($port) {
+ if (ctype_digit($socket) && $socket <= 65535) {
$connectionParams['port'] = $socket;
} else {
$connectionParams['unix_socket'] = $socket;
--
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