Change the variable
This commit is contained in:
parent
c2cd361171
commit
dab55b9562
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user