aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-08-17 22:53:55 +0200
committerGitHub <noreply@github.com>2023-08-17 22:53:55 +0200
commita98748e519ef4df1546ef1242953f0a367b40132 (patch)
treeef0b69ac9f436c391d35dc1b9e8212cfe65b6d88 /apps
parenta8fc62f0b1828b4073e3c5321fe70be6ada3aa2e (diff)
parent93f0399a92962470be6a8d29ee1bebe5de594ee4 (diff)
downloadnextcloud-server-a98748e519ef4df1546ef1242953f0a367b40132.tar.gz
nextcloud-server-a98748e519ef4df1546ef1242953f0a367b40132.zip
Merge pull request #39910 from nextcloud/bugfix/noid/fix-memcache-class-handling
fix(memcache): Fix comparison of Memcache configs to classes
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index 4a1913cedfe..0353862bab0 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -370,7 +370,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;
}