diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-27 11:28:20 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-27 11:28:20 +0300 |
commit | 8afc94b51cbe76a355c42201d70747ce68008792 (patch) | |
tree | 5ff7c06ce57dd9232b4ffc2e77c40bc76d91ff0b | |
parent | 2885dddccc630a623ee3c6e0e07e8cee7257a8c9 (diff) | |
download | local_webhooks-8afc94b51cbe76a355c42201d70747ce68008792.tar.xz local_webhooks-8afc94b51cbe76a355c42201d70747ce68008792.zip |
Renaming a variable
-rw-r--r-- | editservice.php | 4 |
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")); |