mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
Fixing php 5.2 specific problem, closes #2468
This commit is contained in:
parent
1a741b853b
commit
e6e14a7ff9
1 changed files with 6 additions and 2 deletions
|
@ -265,7 +265,11 @@ class CakeEventManager {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
ksort($this->_listeners[$eventKey]);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue