From a19031d444a984dc844a01febd3bacfcc6f7b6fc Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 06:27:04 +0400 Subject: Packer of the received data --- editservice.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editservice.php') diff --git a/editservice.php b/editservice.php index e9c053c..427332c 100644 --- a/editservice.php +++ b/editservice.php @@ -63,6 +63,9 @@ if ($data = $mform->get_data()) { $data->enable = 0; } + /* Packing of data */ + $data->events = base64_encode(gzcompress(serialize($data->events), 9)); + if ($idediting) { $data->id = $idservice; $DB->update_record("local_webhooks_service", $data); -- cgit v1.2.3