Bugfix: using the right variable in Predis\Pipeline\SafeExecutor makes things work.

This commit is contained in:
Daniele Alessandri
2010-05-15 13:47:45 +02:00
parent 82619b4dd0
commit c01d185448
+2 -2
View File
@@ -1561,7 +1561,7 @@ class SafeExecutor implements IExecutor {
foreach ($commands as $command) {
try {
$this->_connection->writeCommand($command);
$connection->writeCommand($command);
}
catch (CommunicationException $exception) {
return array_fill(0, $sizeofPipe, $exception);
@@ -1572,7 +1572,7 @@ class SafeExecutor implements IExecutor {
$command = $commands[$i];
unset($commands[$i]);
try {
$response = $this->_connection->readResponse($command);
$response = $connection->readResponse($command);
$values[] = ($response instanceof \Iterator
? iterator_to_array($response)
: $response