From 7a0d1e31458be7c47e25f0227add2f3cf5a6e538 Mon Sep 17 00:00:00 2001 From: Oleksander Piskun Date: Sun, 17 Aug 2025 15:43:26 +0300 Subject: [PATCH] fix(Memcached-OccService): use "is_array" to support "false" from "cache->get" Signed-off-by: Oleksander Piskun --- lib/Service/ExAppOccService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }