summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-10-25 14:33:49 +0200
committerGitHub <noreply@github.com>2017-10-25 14:33:49 +0200
commit9c3f6a7ca02c390d47c3851685363cce7c15f888 (patch)
tree1bd0e3e09bc9c1d04cf2406836e0a156dcabada4
parentaab0c3f18e90be6659644cb15f5577d74ef0cd35 (diff)
parentcfbc0c8141eda9b26edb213dfed1b00b0662beae (diff)
downloadnextcloud-server-9c3f6a7ca02c390d47c3851685363cce7c15f888.tar.gz
nextcloud-server-9c3f6a7ca02c390d47c3851685363cce7c15f888.zip
Merge pull request #6944 from nextcloud/12-6433
[stable12] Fix uninitialized variable $this->params
-rw-r--r--lib/private/Files/ObjectStore/Swift.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/Swift.php b/lib/private/Files/ObjectStore/Swift.php
index 8b64fd66de0..36a1a4a873f 100644
--- a/lib/private/Files/ObjectStore/Swift.php
+++ b/lib/private/Files/ObjectStore/Swift.php
@@ -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();