mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
json_decode an associative array for the swift cached token
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bb82bfac6d
commit
7318882357
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue