diff --git a/lib/Service/ExAppOccService.php b/lib/Service/ExAppOccService.php index ec6e4d5f..0579cd40 100644 --- a/lib/Service/ExAppOccService.php +++ b/lib/Service/ExAppOccService.php @@ -101,7 +101,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); }