diff --git a/lib/Cake/Event/CakeEventManager.php b/lib/Cake/Event/CakeEventManager.php index 020304ccc..216c03131 100644 --- a/lib/Cake/Event/CakeEventManager.php +++ b/lib/Cake/Event/CakeEventManager.php @@ -239,7 +239,7 @@ public function dispatch($event) { break; } if ($listener['passParams'] === true) { - $result = call_user_func_array($listener['callable'], $event->data); + $result = call_user_func_array($listener['callable'], array_values($event->data)); } else { $result = call_user_func($listener['callable'], $event); }