diff --git a/lib/Cake/Event/CakeEventManager.php b/lib/Cake/Event/CakeEventManager.php index 77d283e76..3d6bf94f3 100644 --- a/lib/Cake/Event/CakeEventManager.php +++ b/lib/Cake/Event/CakeEventManager.php @@ -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'])) {