summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-26 05:27:04 +0300
committerValentin Popov <info@valentineus.link>2017-10-26 05:27:04 +0300
commita19031d444a984dc844a01febd3bacfcc6f7b6fc (patch)
treedecb985e59e15ca9a35ad9a6ad6fe976a67bdde2
parentbae23caa877e592e33f02fe17c93f7931257b796 (diff)
downloadlocal_webhooks-a19031d444a984dc844a01febd3bacfcc6f7b6fc.tar.xz
local_webhooks-a19031d444a984dc844a01febd3bacfcc6f7b6fc.zip
Packer of the received data
-rw-r--r--editservice.php3
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);