diff options
author | Louis Chemineau <louis@chmn.me> | 2021-11-25 16:19:42 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2021-11-25 16:19:42 +0100 |
commit | 5dbb0805179fe943a2217f437fb379622ef4eacc (patch) | |
tree | 6cc71141bd10ba090100a8337277c8cf22ab8a74 /lib/private/RedisFactory.php | |
parent | d9d54ce782d34656d2e53cb7588fcad80182a1fe (diff) | |
download | nextcloud-server-5dbb0805179fe943a2217f437fb379622ef4eacc.tar.gz nextcloud-server-5dbb0805179fe943a2217f437fb379622ef4eacc.zip |
Use strict comparison to detect usage of redis cluster
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/private/RedisFactory.php')
-rw-r--r-- | lib/private/RedisFactory.php | 2 |
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', []); |