Permalink
Browse files

Fixing php 5.2 specific problem, closes #2468

  • Loading branch information...
1 parent 1a741b8 commit e6e14a7ff98b1d80da43d51ee22f8104fb431c03 @lorenzo lorenzo committed Jan 12, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/Cake/Event/CakeEventManager.php
@@ -265,7 +265,11 @@ public function listeners($eventKey) {
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;
}
-}
+}

0 comments on commit e6e14a7

Please sign in to comment.