Correction of transmitted parameters

This commit is contained in:
2017-10-26 09:44:44 +04:00
parent f43b3f2fd3
commit 18a5d23d07
3 changed files with 4 additions and 6 deletions

View File

@ -74,7 +74,9 @@ class events {
*/
private static function handler_callback($data, $callback) {
if ($callback->enable) {
$events = unserialize(gzuncompress(base64_decode($callback->events)));
if (!empty($callback->events)) {
$events = unserialize(gzuncompress(base64_decode($callback->events)));
}
if (boolval($events[$data["eventname"]])) {
/* Adding to the data token */