Sfoglia il codice sorgente

Make it possible to use any type of callable to execute a transaction.

Daniele Alessandri 13 anni fa
parent
commit
9dcabc3264
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/Predis/Transaction/MultiExecContext.php

+ 1 - 1
lib/Predis/Transaction/MultiExecContext.php

@@ -390,7 +390,7 @@ class MultiExecContext
         $this->flagState(self::STATE_INSIDEBLOCK);
 
         try {
-            $callable($this);
+            call_user_func($callable, $this);
         }
         catch (CommunicationException $exception) {
             $blockException = $exception;