diff options
Diffstat (limited to 'classes/handler.php')
-rw-r--r-- | classes/handler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler.php b/classes/handler.php index 47a44f3..da41856 100644 --- a/classes/handler.php +++ b/classes/handler.php @@ -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); } |