Merge pull request #29906 from nextcloud/fix/strict_comp_for_redis

Use strict comparison to detect usage of redis cluster
pull/29893/head
Vincent Petry 2021-11-25 19:52:30 +07:00 committed by GitHub
commit 88129925ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -46,7 +46,7 @@ class RedisFactory {
}
private function create() {
$isCluster = in_array('redis.cluster', $this->config->getKeys());
$isCluster = in_array('redis.cluster', $this->config->getKeys(), true);
$config = $isCluster
? $this->config->getValue('redis.cluster', [])
: $this->config->getValue('redis', []);