Minor bug fixed
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
975c6f8d20
commit
d7185f5925
4
lib.php
4
lib.php
@ -114,7 +114,9 @@ function local_webhooks_get_record($serviceid) {
|
|||||||
$record = $DB->get_record(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid), "*", IGNORE_MISSING);
|
$record = $DB->get_record(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid), "*", IGNORE_MISSING);
|
||||||
|
|
||||||
/* Loads service events */
|
/* Loads service events */
|
||||||
$record->events = local_webhooks_get_list_events_for_service($serviceid);
|
if (!empty($record)) {
|
||||||
|
$record->events = local_webhooks_get_list_events_for_service($serviceid);
|
||||||
|
}
|
||||||
|
|
||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user