summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-16 16:01:00 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-08-17 21:08:09 +0000
commit30a9ba05d2db410565cb9f3f3671cb4177584737 (patch)
tree72da62f44bd3b19d5b32459e98d322fa21c793ca /apps
parent362acd93aaffdb1271c8d5356cd2d6ea4ffaf9e1 (diff)
downloadnextcloud-server-30a9ba05d2db410565cb9f3f3671cb4177584737.tar.gz
nextcloud-server-30a9ba05d2db410565cb9f3f3671cb4177584737.zip
fix(memcache): Fix comparison of Memcache configs to classes
Signed-off-by: Joas Schilling <coding@schilljs.com>
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 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;
}