aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/events.php4
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);
}