From 18a5d23d07628ba63d4256e02fb71a8fd7bad7bb Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 09:44:44 +0400 Subject: Correction of transmitted parameters --- classes/events.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'classes/events.php') 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 */ -- cgit v1.2.3