From dab55b9562d9fd8baea6cd3e08ef317a158b67da Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 09:20:32 +0400 Subject: Change the variable --- classes/events.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') 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); } -- cgit v1.2.3