From ad5fb98070fb284e2f67037221d914ba2e470f1a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 26 Oct 2018 14:31:00 +0400 Subject: Fix 'Line exceeds 132 characters' Signed-off-by: Valentin Popov --- db/upgrade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/upgrade.php b/db/upgrade.php index 0ce98b9..f4f9425 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -118,7 +118,8 @@ function save_records($records) { $recordid = $DB->insert_record('local_webhooks_service', (object) $record, true, false); if ($recordid && is_array($record['events'])) { 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); } } } -- cgit v1.2.3