mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 21:18:39 +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 */
|
public function trigger(string $group, string $id = '') /* : void */
|
||||||
{
|
{
|
||||||
|
if(!isset($this->callbacks[$group])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($this->groups[$group])) {
|
if (isset($this->groups[$group])) {
|
||||||
$this->groups[$group][$id] = true;
|
$this->groups[$group][$id] = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user