diff options
Diffstat (limited to 'classes/events.php')
-rw-r--r-- | classes/events.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/events.php b/classes/events.php index 317ffed..7fbe343 100644 --- a/classes/events.php +++ b/classes/events.php @@ -39,9 +39,9 @@ class events { * @param object $event */ public static function handler($event) { - $config = get_config("local_webhooks"); + $enable = get_config("local_webhooks", "enable"); - if (boolval($config->enable)) { + if (boolval($enable)) { $data = $event->get_data(); self::transmitter($data); } |