Skip to content

Commit 8812992

Browse files
authored
Merge pull request #29906 from nextcloud/fix/strict_comp_for_redis
Use strict comparison to detect usage of redis cluster
2 parents 69656f3 + 5dbb080 commit 8812992

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/RedisFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(SystemConfig $config) {
4646
}
4747

4848
private function create() {
49-
$isCluster = in_array('redis.cluster', $this->config->getKeys());
49+
$isCluster = in_array('redis.cluster', $this->config->getKeys(), true);
5050
$config = $isCluster
5151
? $this->config->getValue('redis.cluster', [])
5252
: $this->config->getValue('redis', []);

0 commit comments

Comments
 (0)