diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-08-18 13:21:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 13:21:01 +0200 |
commit | 820d05dfa769db6c7f897264fdc73025d9085b9b (patch) | |
tree | 1d607be99ec4e30a480fd9cd0ce83165a9186b47 /apps/settings | |
parent | 7901a7059ff085d6b491212aa3933d426bedd809 (diff) | |
parent | 30a9ba05d2db410565cb9f3f3671cb4177584737 (diff) | |
download | nextcloud-server-820d05dfa769db6c7f897264fdc73025d9085b9b.tar.gz nextcloud-server-820d05dfa769db6c7f897264fdc73025d9085b9b.zip |
Merge pull request #39947 from nextcloud/backport/39910/stable27
[stable27] fix(memcache): Fix comparison of Memcache configs to classes
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 a0c52f6e13d..a55596358e5 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -382,7 +382,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; } |