Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing php 5.2 specific problem, closes #2468

  • Loading branch information...
commit e6e14a7ff98b1d80da43d51ee22f8104fb431c03 1 parent 1a741b8
@lorenzo lorenzo authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/Cake/Event/CakeEventManager.php
View
8 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;
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.