Correction of possible problems

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2018-11-02 02:06:47 +04:00
parent 849d7126d8
commit 2f04aeab6d
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ class handler {
public static function events($event) {
$data = $event->get_data();
if ($callbacks = local_webhooks_get_list_records()) {
if (!empty($callbacks = local_webhooks_get_list_records())) {
foreach ($callbacks as $callback) {
self::handler_callback($data, $callback);
}