mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
add isset for optional params
This commit is contained in:
parent
eae8500a86
commit
3f101039b9
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue