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