Fix 'Line exceeds 132 characters'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
09c54f6627
commit
ad5fb98070
@ -118,7 +118,8 @@ function save_records($records) {
|
|||||||
$recordid = $DB->insert_record('local_webhooks_service', (object) $record, true, false);
|
$recordid = $DB->insert_record('local_webhooks_service', (object) $record, true, false);
|
||||||
if ($recordid && is_array($record['events'])) {
|
if ($recordid && is_array($record['events'])) {
|
||||||
foreach ($record['events'] as $eventname) {
|
foreach ($record['events'] as $eventname) {
|
||||||
$DB->insert_record('local_webhooks_events', (object) array('name' => $eventname, 'serviceid' => $recordid), true, false);
|
$event = array('name' => $eventname, 'serviceid' => $recordid);
|
||||||
|
$DB->insert_record('local_webhooks_events', (object) $event, true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user