Renaming a variable
This commit is contained in:
parent
2885dddccc
commit
8afc94b51c
@ -55,7 +55,7 @@ if ($mform->is_cancelled()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Getting the data */
|
/* Getting the data */
|
||||||
if ($idediting = boolval($serviceid)) {
|
if ($editing = boolval($serviceid)) {
|
||||||
$servicerecord = $DB->get_record("local_webhooks_service", array("id" => $serviceid), "*", MUST_EXIST);
|
$servicerecord = $DB->get_record("local_webhooks_service", array("id" => $serviceid), "*", MUST_EXIST);
|
||||||
$mform->set_data($servicerecord);
|
$mform->set_data($servicerecord);
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ if ($data = $mform->get_data()) {
|
|||||||
$data->events = base64_encode(gzcompress(serialize($data->events), 9));
|
$data->events = base64_encode(gzcompress(serialize($data->events), 9));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($idediting) {
|
if ($editing) {
|
||||||
$data->id = $serviceid;
|
$data->id = $serviceid;
|
||||||
$DB->update_record("local_webhooks_service", $data);
|
$DB->update_record("local_webhooks_service", $data);
|
||||||
redirect($managerservice, new lang_string("eventwebserviceserviceupdated", "webservice"));
|
redirect($managerservice, new lang_string("eventwebserviceserviceupdated", "webservice"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user