diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 05:27:04 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 05:27:04 +0300 |
commit | a19031d444a984dc844a01febd3bacfcc6f7b6fc (patch) | |
tree | decb985e59e15ca9a35ad9a6ad6fe976a67bdde2 | |
parent | bae23caa877e592e33f02fe17c93f7931257b796 (diff) | |
download | local_webhooks-a19031d444a984dc844a01febd3bacfcc6f7b6fc.tar.xz local_webhooks-a19031d444a984dc844a01febd3bacfcc6f7b6fc.zip |
Packer of the received data
-rw-r--r-- | editservice.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); |