aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/events.php5
1 files changed, 5 insertions, 0 deletions
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);
}
}