summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-17 13:45:11 +0200
committerGitHub <noreply@github.com>2023-05-17 13:45:11 +0200
commitfc86b9cd85a60b362145e8a84f6050d60f9863eb (patch)
tree601fea7bc11eb80de773190a76a15f23870adce1
parent4e1b6ee168839791dce210bbbe6d236480dffb00 (diff)
parentb4fab4cfa415d29b51b8b329db9389a1fd93e0a9 (diff)
downloadnextcloud-server-fc86b9cd85a60b362145e8a84f6050d60f9863eb.tar.gz
nextcloud-server-fc86b9cd85a60b362145e8a84f6050d60f9863eb.zip
Merge pull request #38130 from nextcloud/backport/36895/stable26
[stable26] Fix json_decode expecting a string
-rw-r--r--lib/private/IntegrityCheck/Checker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/IntegrityCheck/Checker.php b/lib/private/IntegrityCheck/Checker.php
index 9587e0fd42a..545fff0b0d2 100644
--- a/lib/private/IntegrityCheck/Checker.php
+++ b/lib/private/IntegrityCheck/Checker.php
@@ -439,7 +439,7 @@ class Checker {
*/
public function getResults(): array {
$cachedResults = $this->cache->get(self::CACHE_KEY);
- if (!\is_null($cachedResults)) {
+ if (!\is_null($cachedResults) and $cachedResults !== false) {
return json_decode($cachedResults, true);
}