diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 08:44:44 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 08:44:44 +0300 |
commit | 18a5d23d07628ba63d4256e02fb71a8fd7bad7bb (patch) | |
tree | c9728c459eb6b0aaede918eb322bab629d458107 /classes/events.php | |
parent | f43b3f2fd38ac7b80cd1762ffac4bd1d8f3a6f77 (diff) | |
download | local_webhooks-18a5d23d07628ba63d4256e02fb71a8fd7bad7bb.tar.xz local_webhooks-18a5d23d07628ba63d4256e02fb71a8fd7bad7bb.zip |
Correction of transmitted parameters
Diffstat (limited to 'classes/events.php')
-rw-r--r-- | classes/events.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/events.php b/classes/events.php index 7fbe343..613ac9d 100644 --- a/classes/events.php +++ b/classes/events.php @@ -74,7 +74,9 @@ class events { */ private static function handler_callback($data, $callback) { if ($callback->enable) { - $events = unserialize(gzuncompress(base64_decode($callback->events))); + if (!empty($callback->events)) { + $events = unserialize(gzuncompress(base64_decode($callback->events))); + } if (boolval($events[$data["eventname"]])) { /* Adding to the data token */ |