Merge pull request #38130 from nextcloud/backport/36895/stable26

[stable26] Fix json_decode expecting a string
This commit is contained in:
Arthur Schiwon 2023-05-17 13:45:11 +02:00 committed by GitHub
commit fc86b9cd85
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);
}