Skip to content

Commit

Permalink
Fix uninitialized variable $this->params
Browse files Browse the repository at this point in the history
  • Loading branch information
william-p committed Sep 10, 2017
1 parent 3f6692e commit dc28f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/ObjectStore/Swift.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public function __construct($params) {

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();
Expand Down

0 comments on commit dc28f2a

Please sign in to comment.