From 282e3bcaf1ce275c50e0168c4675b55159e17411 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 08:01:16 +0400 Subject: Add a token to the request --- classes/events.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'classes') diff --git a/classes/events.php b/classes/events.php index 33e278b..317ffed 100644 --- a/classes/events.php +++ b/classes/events.php @@ -77,6 +77,11 @@ class events { $events = unserialize(gzuncompress(base64_decode($callback->events))); if (boolval($events[$data["eventname"]])) { + /* Adding to the data token */ + if (boolval($callback->token)) { + $data["token"] = $callback->token; + } + self::send($data, $callback); } } -- cgit v1.2.3