Skip to content

Commit 634848a

Browse files
authored
Merge pull request #632 from nextcloud/fix/631/occ-service-memcache-backend
fix(Memcache-OccService): use "is_array" to support "false" from "cache->get"
2 parents 0442045 + 1e4a71c commit 634848a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Service/ExAppOccService.php

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

0 commit comments

Comments
 (0)