Skip to content

Commit dded7b9

Browse files
authored
Merge pull request #635 from nextcloud/backport/632/stable30
[stable30] fix(Memcache-OccService): use "is_array" to support "false" from "cache->get"
2 parents 01b7d61 + 7a0d1e3 commit dded7b9

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)