From 1330df55f1eefe6db3050e9dd90e6ffa88c900db Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 14 Apr 2017 12:12:25 +0200 Subject: [PATCH] Fixed undefined group --- Event/EventManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Event/EventManager.php b/Event/EventManager.php index ee10c1ba1..b5b7a60b8 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -77,6 +77,10 @@ class EventManager */ public function trigger(string $group, string $id = '') /* : void */ { + if(!isset($this->callbacks[$group])) { + return; + } + if (isset($this->groups[$group])) { $this->groups[$group][$id] = true; }