diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 15:33:40 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 15:33:40 +0300 |
commit | f613301f2405dbd915fbdef58b01cc0b00d13485 (patch) | |
tree | 0b1191d22740ba582e6a8058dd21ad56f74d47af | |
parent | f51bb5714e5e08c8a7f56ef0992e0f43b35bb963 (diff) | |
download | local_webhooks-f613301f2405dbd915fbdef58b01cc0b00d13485.tar.xz local_webhooks-f613301f2405dbd915fbdef58b01cc0b00d13485.zip |
Correcting the error if there is no value
-rw-r--r-- | classes/events.php | 3 |
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; } |