|
|
@@ -122,7 +122,7 @@ class CakeEventManager {
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function _attachSubscriber(CakeEventListener $subscriber) {
|
|
|
- foreach ($subscriber->implementedEvents() as $eventKey => $function) {
|
|
|
+ foreach ((array)$subscriber->implementedEvents() as $eventKey => $function) {
|
|
|
$options = array();
|
|
|
$method = $function;
|
|
|
if (is_array($function) && isset($function['callable'])) {
|