Преглед изворни кода

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