Correcting the error if there is no value
This commit is contained in:
parent
f51bb5714e
commit
f613301f24
@ -82,8 +82,7 @@ class events {
|
|||||||
$events = unserialize(gzuncompress(base64_decode($callback->events)));
|
$events = unserialize(gzuncompress(base64_decode($callback->events)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boolval($events[$data["eventname"]])) {
|
if (!empty($events[$data["eventname"]])) {
|
||||||
/* Adding to the data token */
|
|
||||||
if (boolval($callback->token)) {
|
if (boolval($callback->token)) {
|
||||||
$data["token"] = $callback->token;
|
$data["token"] = $callback->token;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user