Correcting the error if there is no value

This commit is contained in:
Valentin Popov 2017-10-26 16:33:40 +04:00
parent f51bb5714e
commit f613301f24

View File

@ -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;
}