Skip to content

Commit 7a0d1e3

Browse files
oleksandr-ncbackportbot[bot]
authored andcommitted
fix(Memcached-OccService): use "is_array" to support "false" from "cache->get"
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
1 parent 01b7d61 commit 7a0d1e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/ExAppOccService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getOccCommands(): array {
9696
try {
9797
$cacheKey = '/ex_occ_commands';
9898
$records = $this->cache?->get($cacheKey);
99-
if ($records === null) {
99+
if (!is_array($records)) {
100100
$records = $this->mapper->findAllEnabled();
101101
$this->cache?->set($cacheKey, $records);
102102
}

0 commit comments

Comments
 (0)