Skip to content

Commit

Permalink
Merge pull request #38132 from nextcloud/backport/36895/stable25
Browse files Browse the repository at this point in the history
[stable25] Fix json_decode expecting a string
  • Loading branch information
solracsf authored May 17, 2023
2 parents 66b8c94 + 0e4e1ab commit 4941f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/IntegrityCheck/Checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public function hasPassedCheck(): bool {
*/
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);
}

Expand Down

0 comments on commit 4941f32

Please sign in to comment.