From f613301f2405dbd915fbdef58b01cc0b00d13485 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 16:33:40 +0400 Subject: Correcting the error if there is no value --- classes/events.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/events.php') 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; } -- cgit v1.2.3