浏览代码

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

Daniele Alessandri 13 年之前
父节点
当前提交
9dcabc3264
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;