From af6ac9fb22deae77148ae82663131ae3b1d251a6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 27 Oct 2017 08:04:23 +0400 Subject: A small correction of logic --- editservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editservice.php') 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")); -- cgit v1.2.3