aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-11-26 11:16:15 +0100
committerGitHub <noreply@github.com>2021-11-26 11:16:15 +0100
commit9275a9f28a7f9341201999737dc53a40cfea5f5d (patch)
tree81492b3f4dbe9944ce313196e81dc309d30aad98
parentab9282fe26858c82eaf0ebdf3b14b258b07da99e (diff)
parent3f0cff666701cbd6cf907d67e0cc84f624dea203 (diff)
downloadnextcloud-server-9275a9f28a7f9341201999737dc53a40cfea5f5d.tar.gz
nextcloud-server-9275a9f28a7f9341201999737dc53a40cfea5f5d.zip
Merge pull request #29913 from nextcloud/backport/29906/stable23
[stable23] Use strict comparison to detect usage of redis cluster
-rw-r--r--lib/private/RedisFactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/RedisFactory.php b/lib/private/RedisFactory.php
index d8c0d12c5cc..3062be28a78 100644
--- a/lib/private/RedisFactory.php
+++ b/lib/private/RedisFactory.php
@@ -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', []);