diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-06-12 19:48:37 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-06-12 19:48:37 +0200 |
commit | 6da2beeaff40be812fa1a5fcb125156c6a3a33c3 (patch) | |
tree | 4f8b3c14b08cf2f4cb5c4fc4bf952fd1c640f525 /lib/private/db.php | |
parent | 1b02991a1dfd3d8cb8a7992609e0235bb97876ea (diff) | |
download | nextcloud-server-6da2beeaff40be812fa1a5fcb125156c6a3a33c3.tar.gz nextcloud-server-6da2beeaff40be812fa1a5fcb125156c6a3a33c3.zip |
Inline $port expression, getting rid of $port variable.
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/db.php b/lib/private/db.php index eec2b9220e2..d3bf8c0016c 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; |