Merge pull request #6433 from william-p/Fix_uninitialized_params

Fix uninitialized variable $this->params
pull/6320/head^2
Lukas Reschke 2017-09-11 11:54:15 +07:00 committed by GitHub
commit 0186d8405c
1 changed files with 2 additions and 2 deletions

@ -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();