From 6814845e3fcd7fd2e921fac751612ff7791b864e Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sat, 26 Dec 2009 19:42:45 +0100 Subject: [PATCH] Removed a wrong type-check in Predis\Client::setupConnection that was breaking the initialization of a cluster of connections when using an array of URI strings as parameters. --- lib/Predis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Predis.php b/lib/Predis.php index cf542119..c0583512 100644 --- a/lib/Predis.php +++ b/lib/Predis.php @@ -50,7 +50,7 @@ class Client { throw new ClientException('Invalid parameters type (array or string expected)'); } - if (is_array($parameters) && isset($parameters[0]) && is_array($parameters[0])) { + if (is_array($parameters) && isset($parameters[0])) { $cluster = new ConnectionCluster(); foreach ($parameters as $shardParams) { $cluster->add($this->createConnection($shardParams));