json_decode an associative array for the swift cached token

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/9322/head
Roeland Jago Douma 8 years ago
parent bb82bfac6d
commit 7318882357
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      lib/private/Files/ObjectStore/SwiftFactory.php

@ -56,7 +56,7 @@ class SwiftFactory {
private function getCachedToken(string $cacheKey) {
$cachedTokenString = $this->cache->get($cacheKey . '/token');
if ($cachedTokenString) {
return json_decode($cachedTokenString);
return json_decode($cachedTokenString, true);
} else {
return null;
}

Loading…
Cancel
Save