Fix: Global variable
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
57a870f56f
commit
b12c850a2f
@ -79,6 +79,8 @@ function local_webhooks_cache_reset() {
|
|||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function local_webhooks_insert_events($serviceid, $events) {
|
function local_webhooks_insert_events($serviceid, $events) {
|
||||||
|
global $DB;
|
||||||
|
|
||||||
$records = array();
|
$records = array();
|
||||||
|
|
||||||
foreach ($events as $eventname => $eventstatus) {
|
foreach ($events as $eventname => $eventstatus) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user