diff --git a/lib/Cake/Event/CakeEventManager.php b/lib/Cake/Event/CakeEventManager.php index 8b3ceb0f7..cb29d4e7e 100644 --- a/lib/Cake/Event/CakeEventManager.php +++ b/lib/Cake/Event/CakeEventManager.php @@ -265,7 +265,11 @@ class CakeEventManager { return array(); } ksort($this->_listeners[$eventKey]); - return array_reduce($this->_listeners[$eventKey], 'array_merge', array()); + $result = array(); + foreach ($this->_listeners[$eventKey] as $priorityQ) { + $result = array_merge($result, $priorityQ); + } + return $result; } -} \ No newline at end of file +}