Fix uninitialized variable $this->params

Signed-off-by: William Pain <pain.william@gmail.com>
This commit is contained in:
William Pain 2017-09-10 15:31:57 +02:00 committed by Morris Jobke
parent 895336a3f3
commit cfbc0c8141
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 2 additions and 2 deletions

View File

@ -73,10 +73,10 @@ class Swift implements IObjectStore {
if (isset($params['apiKey'])) { if (isset($params['apiKey'])) {
$this->client = new Rackspace($params['url'], $params); $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 { } else {
$this->client = new OpenStack($params['url'], $params); $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(); $cacheFactory = \OC::$server->getMemCacheFactory();