diff options
author | Joas Schilling <coding@schilljs.com> | 2023-08-16 16:01:00 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-17 21:48:23 +0000 |
commit | 361d8f2742cbe1c542211b95f3c828722535ad1a (patch) | |
tree | 1730a2e096e3e64b394c44486c56ef00bdc4de0f /apps/settings | |
parent | 168dc8f9646fd81405b39115d33a30e8b274184f (diff) | |
download | nextcloud-server-361d8f2742cbe1c542211b95f3c828722535ad1a.tar.gz nextcloud-server-361d8f2742cbe1c542211b95f3c828722535ad1a.zip |
fix(memcache): Fix comparison of Memcache configs to classes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |