summaryrefslogtreecommitdiff
path: root/editservice.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-27 07:04:23 +0300
committerValentin Popov <info@valentineus.link>2017-10-27 07:04:23 +0300
commitaf6ac9fb22deae77148ae82663131ae3b1d251a6 (patch)
tree16a511cdf94ad0c5a0a8a31365adc9cfc6cd8d80 /editservice.php
parente1734746c047c9df1975cd548d32d87019923728 (diff)
downloadlocal_webhooks-af6ac9fb22deae77148ae82663131ae3b1d251a6.tar.xz
local_webhooks-af6ac9fb22deae77148ae82663131ae3b1d251a6.zip
A small correction of logic
Diffstat (limited to 'editservice.php')
-rw-r--r--editservice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/editservice.php b/editservice.php
index 9474ad9..986ce9a 100644
--- a/editservice.php
+++ b/editservice.php
@@ -66,7 +66,7 @@ if ($data = $mform->get_data()) {
$data->events = base64_encode(gzcompress(serialize($data->events), 9));
}
- if (boolval($idediting)) {
+ if ($idediting) {
$data->id = $serviceid;
$DB->update_record("local_webhooks_service", $data);
redirect($managerservice, new lang_string("eventwebserviceserviceupdated", "webservice"));