Fixing php 5.2 specific problem, closes #2468

This commit is contained in:
Jose Lorenzo Rodriguez 2012-01-12 19:13:56 -04:30
parent 1a741b853b
commit e6e14a7ff9

View file

@ -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;
}
}