Merge pull request #6944 from nextcloud/12-6433

[stable12] Fix uninitialized variable $this->params
This commit is contained in:
Morris Jobke 2017-10-25 14:33:49 +02:00 committed by GitHub
commit 9c3f6a7ca0
1 changed files with 2 additions and 2 deletions

View File

@ -73,10 +73,10 @@ class Swift implements IObjectStore {
if (isset($params['apiKey'])) {
$this->client = new Rackspace($params['url'], $params);
$cacheKey = $this->params['username'] . '@' . $this->params['url'] . '/' . $this->params['bucket'];
$cacheKey = $params['username'] . '@' . $params['url'] . '/' . $params['bucket'];
} else {
$this->client = new OpenStack($params['url'], $params);
$cacheKey = $this->params['username'] . '@' . $this->params['url'] . '/' . $this->params['bucket'];
$cacheKey = $params['username'] . '@' . $params['url'] . '/' . $params['bucket'];
}
$cacheFactory = \OC::$server->getMemCacheFactory();