diff --git a/Client.php b/Client.php index ffb336b..43ae03c 100755 --- a/Client.php +++ b/Client.php @@ -1152,10 +1152,12 @@ public function __call($name, $args) if ($this->isMulti) { $execResponse = array_pop($response); - foreach ($queuedResponses as $key => $command) { - list($name, $arguments) = $command; - $response[] = $this->decode_reply($name, $execResponse[$key], $arguments); - } + if(!empty($execResponse)) { + foreach ($queuedResponses as $key => $command) { + list($name, $arguments) = $command; + $response[] = $this->decode_reply($name, $execResponse[$key], $arguments); + } + } } } catch (CredisException $e) { // the connection on redis's side is likely in a bad state, force it closed to abort the pipeline/transaction