aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-26 08:20:32 +0300
committerValentin Popov <info@valentineus.link>2017-10-26 08:20:32 +0300
commitdab55b9562d9fd8baea6cd3e08ef317a158b67da (patch)
tree3b2d5c34dcbb80554fd4d318acbc37087bf57695
parentc2cd361171b082cb00f9526020cf4930d54a9895 (diff)
downloadlocal_webhooks-dab55b9562d9fd8baea6cd3e08ef317a158b67da.tar.xz
local_webhooks-dab55b9562d9fd8baea6cd3e08ef317a158b67da.zip
Change the variable
-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);
}