A small correction of logic

This commit is contained in:
2017-10-27 08:04:23 +04:00
parent e1734746c0
commit af6ac9fb22
2 changed files with 4 additions and 3 deletions

View File

@ -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"));