From 826e234ecfa37b831df85c80606df6875574527f Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 29 Sep 2022 14:41:53 +0200 Subject: Correctly handle Redis::keys returning false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/Memcache/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Memcache') 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)); } /** -- cgit v1.2.3