summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editservice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/editservice.php b/editservice.php
index 40bab9e..3c57507 100644
--- a/editservice.php
+++ b/editservice.php
@@ -55,7 +55,7 @@ if ($mform->is_cancelled()) {
}
/* Getting the data */
-if ($idediting = boolval($serviceid)) {
+if ($editing = boolval($serviceid)) {
$servicerecord = $DB->get_record("local_webhooks_service", array("id" => $serviceid), "*", MUST_EXIST);
$mform->set_data($servicerecord);
}
@@ -66,7 +66,7 @@ if ($data = $mform->get_data()) {
$data->events = base64_encode(gzcompress(serialize($data->events), 9));
}
- if ($idediting) {
+ if ($editing) {
$data->id = $serviceid;
$DB->update_record("local_webhooks_service", $data);
redirect($managerservice, new lang_string("eventwebserviceserviceupdated", "webservice"));