From f31a1eb6b7d377b8884c2288660c4e64ec6580bf Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 21 Feb 2022 10:59:09 +0100 Subject: [PATCH] Fix cached circle returning bool before being parsed as JSON Closes #928 Signed-off-by: Thomas Citharel --- lib/Service/FederatedUserService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/FederatedUserService.php b/lib/Service/FederatedUserService.php index a77864a8f..88875a4ea 100644 --- a/lib/Service/FederatedUserService.php +++ b/lib/Service/FederatedUserService.php @@ -1195,7 +1195,7 @@ private function getCachedSingleCircle(FederatedUser $federatedUser): Circle { $key = $this->generateCacheKey($federatedUser); $cachedData = $this->cache->get($key); - if ($cachedData === null) { + if (!is_string($cachedData)) { throw new SingleCircleNotFoundException(); }