aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-10-26 13:31:00 +0300
committerValentin Popov <info@valentineus.link>2018-10-26 13:31:00 +0300
commitad5fb98070fb284e2f67037221d914ba2e470f1a (patch)
tree643e50198aebea4ac0c51722313dd8ada92cf836 /db
parent09c54f6627a028941fbaba281733f38b28d3ea8c (diff)
downloadlocal_webhooks-ad5fb98070fb284e2f67037221d914ba2e470f1a.tar.xz
local_webhooks-ad5fb98070fb284e2f67037221d914ba2e470f1a.zip
Fix 'Line exceeds 132 characters'
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'db')
-rw-r--r--db/upgrade.php3
1 files changed, 2 insertions, 1 deletions
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);
}
}
}