aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-16 16:01:00 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-16 16:05:50 +0200
commit93f0399a92962470be6a8d29ee1bebe5de594ee4 (patch)
tree1204c45d0edd05c3aeab8641534b0a51aeca01b4 /apps
parentf3fa006484c6dc7f3dd2504ea005dc3689ed4d44 (diff)
downloadnextcloud-server-93f0399a92962470be6a8d29ee1bebe5de594ee4.tar.gz
nextcloud-server-93f0399a92962470be6a8d29ee1bebe5de594ee4.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 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;
}