From 361d8f2742cbe1c542211b95f3c828722535ad1a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 16 Aug 2023 16:01:00 +0200 Subject: fix(memcache): Fix comparison of Memcache configs to classes Signed-off-by: Joas Schilling --- apps/settings/lib/Controller/CheckSetupController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/settings') diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index aee99310b6a..eda0048ae72 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -381,7 +381,8 @@ class CheckSetupController extends Controller { * @return bool */ private function isCorrectMemcachedPHPModuleInstalled() { - if ($this->config->getSystemValue('memcache.distributed', null) !== '\OC\Memcache\Memcached') { + $memcacheDistributedClass = $this->config->getSystemValue('memcache.distributed', null); + if ($memcacheDistributedClass === null || ltrim($memcacheDistributedClass, '\\') !== \OC\Memcache\Memcached::class) { return true; } -- cgit v1.2.3