소스 검색

Fix bad handling of empty MULTI/EXEC contexts (MULTI should not even be sent to the server).

Daniele Alessandri 14 년 전
부모
커밋
4c8f31f532
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -890,7 +890,7 @@ class MultiExecBlock {
                 $this->setInsideBlock(false);
             }
 
-            if ($this->_discarded === true) {
+            if ($this->_initialized === false || $this->_discarded === true) {
                 return;
             }