Merge pull request #38132 from nextcloud/backport/36895/stable25

[stable25] Fix json_decode expecting a string
This commit is contained in:
Git'Fellow 2023-05-17 13:24:17 +02:00 committed by GitHub
commit 4941f32d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}