Explorar o código

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

Daniele Alessandri %!s(int64=14) %!d(string=hai) anos
pai
achega
4c8f31f532
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }