mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fixed undefined group
This commit is contained in:
parent
7a55ea0e56
commit
1330df55f1
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user