Fix: Global variable
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user