浏览代码

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;
             }