summaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 14:41:53 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 14:41:53 +0200
commit826e234ecfa37b831df85c80606df6875574527f (patch)
tree1acf25c04293da9803dc9a04a01edb02cdf84f19 /lib/private/Memcache
parentd647025f616c95137be269cc7467c23671a08aa2 (diff)
downloadnextcloud-server-826e234ecfa37b831df85c80606df6875574527f.tar.gz
nextcloud-server-826e234ecfa37b831df85c80606df6875574527f.zip
Correctly handle Redis::keys returning false
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r--lib/private/Memcache/Redis.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php
index 9b07da2d99c..de38033ca32 100644
--- a/lib/private/Memcache/Redis.php
+++ b/lib/private/Memcache/Redis.php
@@ -78,7 +78,7 @@ class Redis extends Cache implements IMemcacheTTL {
$keys = self::$cache->keys($prefix);
$deleted = self::$cache->del($keys);
- return count($keys) === $deleted;
+ return (is_array($keys) && (count($keys) === $deleted));
}
/**