diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 08:20:32 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 08:20:32 +0300 |
commit | dab55b9562d9fd8baea6cd3e08ef317a158b67da (patch) | |
tree | 3b2d5c34dcbb80554fd4d318acbc37087bf57695 | |
parent | c2cd361171b082cb00f9526020cf4930d54a9895 (diff) | |
download | local_webhooks-dab55b9562d9fd8baea6cd3e08ef317a158b67da.tar.xz local_webhooks-dab55b9562d9fd8baea6cd3e08ef317a158b67da.zip |
Change the variable
-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); } |