aboutsummaryrefslogtreecommitdiff
path: root/locallib.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-03-12 22:52:38 +0300
committerValentin Popov <info@valentineus.link>2018-03-12 22:52:38 +0300
commitb12c850a2f20c0f1a04feab24e3a99caa661da65 (patch)
tree3f8efc8fb39d9131d415c1fe97438108294bfe84 /locallib.php
parent57a870f56f3505dbb323cb6461286b03b522bacc (diff)
downloadlocal_webhooks-b12c850a2f20c0f1a04feab24e3a99caa661da65.tar.xz
local_webhooks-b12c850a2f20c0f1a04feab24e3a99caa661da65.zip
Fix: Global variable
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'locallib.php')
-rw-r--r--locallib.php2
1 files changed, 2 insertions, 0 deletions
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) {