summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-26 20:47:47 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-26 20:47:47 +0200
commit731888235789bb04f4e889b46cbaa35094607b36 (patch)
treeb6503691a08f30f3d2ff5f42183affc312a2f78e /lib/private/Files
parentbb82bfac6dd388fac21284b7996eaa31cc44d55f (diff)
downloadnextcloud-server-731888235789bb04f4e889b46cbaa35094607b36.tar.gz
nextcloud-server-731888235789bb04f4e889b46cbaa35094607b36.zip
json_decode an associative array for the swift cached token
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/ObjectStore/SwiftFactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/SwiftFactory.php b/lib/private/Files/ObjectStore/SwiftFactory.php
index 8baaec985e8..389a5df7195 100644
--- a/lib/private/Files/ObjectStore/SwiftFactory.php
+++ b/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;
}