From b12c850a2f20c0f1a04feab24e3a99caa661da65 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 12 Mar 2018 23:52:38 +0400 Subject: Fix: Global variable Signed-off-by: Valentin Popov --- locallib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locallib.php b/locallib.php index 0a776b0..4fae651 100644 --- a/locallib.php +++ b/locallib.php @@ -79,6 +79,8 @@ function local_webhooks_cache_reset() { * @return boolean */ function local_webhooks_insert_events($serviceid, $events) { + global $DB; + $records = array(); foreach ($events as $eventname => $eventstatus) { -- cgit v1.2.3