diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-01-04 16:38:45 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-01-04 16:38:45 +0100 |
commit | 3f101039b9621837f9405f1b58357d82a712a3a0 (patch) | |
tree | 195d16d111c089d7d4bf179363873748f1b9b4b6 /lib | |
parent | eae8500a86f99fc399d06a3a6c6db4a3877f4a4f (diff) | |
download | nextcloud-server-3f101039b9621837f9405f1b58357d82a712a3a0.tar.gz nextcloud-server-3f101039b9621837f9405f1b58357d82a712a3a0.zip |
add isset for optional params
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/objectstore/swift.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/files/objectstore/swift.php b/lib/private/files/objectstore/swift.php index 162b17a066c..50bb0d9adf5 100644 --- a/lib/private/files/objectstore/swift.php +++ b/lib/private/files/objectstore/swift.php @@ -73,12 +73,13 @@ class Swift implements IObjectStore { // the OpenCloud client library will default to 'cloudFiles' if $serviceName is null $serviceName = null; - if ($this->params['serviceName']) { + if (isset($this->params['serviceName'])) { $serviceName = $this->params['serviceName']; } + // the OpenCloud client library will default to 'publicURL' if $urlType is null $urlType = null; - if ($this->params['urlType']) { + if (isset($this->params['urlType'])) { $urlType = $this->params['urlType']; } $this->objectStoreService = $this->client->objectStoreService($serviceName, $this->params['region'], $urlType); |