From 8afc94b51cbe76a355c42201d70747ce68008792 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 27 Oct 2017 12:28:20 +0400 Subject: Renaming a variable --- editservice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editservice.php') 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")); -- cgit v1.2.3