diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-01-07 09:46:53 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-01-07 09:46:53 +0100 |
commit | 18379cd1f65e3d87af1f40bd04e4c1bec0e72d31 (patch) | |
tree | c44345ae0b7fe0ca9973e425910235a20746cc92 /lib | |
parent | b314da9a25d2ec9efbece9e6c294bb36485fb286 (diff) | |
download | nextcloud-server-18379cd1f65e3d87af1f40bd04e4c1bec0e72d31.tar.gz nextcloud-server-18379cd1f65e3d87af1f40bd04e4c1bec0e72d31.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); |