Skip to content

Commit

Permalink
Merge pull request #36895 from apasov/patch-1
Browse files Browse the repository at this point in the history
Fix json_decode expecting a string
  • Loading branch information
blizzz authored May 8, 2023
2 parents 53957cf + 3a11f91 commit c7bb540
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 c7bb540

Please sign in to comment.