diff --git a/lib/private/Files/ObjectStore/Swift.php b/lib/private/Files/ObjectStore/Swift.php index 8b64fd66de0b6..36a1a4a873f4f 100644 --- a/lib/private/Files/ObjectStore/Swift.php +++ b/lib/private/Files/ObjectStore/Swift.php @@ -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();