diff --git a/lib/Service/ExAppOccService.php b/lib/Service/ExAppOccService.php index 8263f1389..9d49b4d48 100644 --- a/lib/Service/ExAppOccService.php +++ b/lib/Service/ExAppOccService.php @@ -96,7 +96,7 @@ public function getOccCommands(): array { try { $cacheKey = '/ex_occ_commands'; $records = $this->cache?->get($cacheKey); - if ($records === null) { + if (!is_array($records)) { $records = $this->mapper->findAllEnabled(); $this->cache?->set($cacheKey, $records); }