aboutsummaryrefslogtreecommitdiff
path: root/classes/events.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/events.php')
-rw-r--r--classes/events.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/events.php b/classes/events.php
index 46151e5..af18a42 100644
--- a/classes/events.php
+++ b/classes/events.php
@@ -82,8 +82,7 @@ class events {
$events = unserialize(gzuncompress(base64_decode($callback->events)));
}
- if (boolval($events[$data["eventname"]])) {
- /* Adding to the data token */
+ if (!empty($events[$data["eventname"]])) {
if (boolval($callback->token)) {
$data["token"] = $callback->token;
}