Skip to content

Commit

Permalink
Fixing php 5.2 specific problem, closes #2468
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 12, 2012
1 parent 1a741b8 commit e6e14a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Cake/Event/CakeEventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.