Skip to content

Commit

Permalink
Merge pull request #6944 from nextcloud/12-6433
Browse files Browse the repository at this point in the history
[stable12] Fix uninitialized variable $this->params
  • Loading branch information
MorrisJobke authored Oct 25, 2017
2 parents aab0c3f + cfbc0c8 commit 9c3f6a7
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 9c3f6a7

Please sign in to comment.