Change the variable

This commit is contained in:
Valentin Popov 2017-10-26 09:20:32 +04:00
parent c2cd361171
commit dab55b9562

View File

@ -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);
}