From 2f04aeab6d7b899a661763e20fdd2e58e635b74d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 2 Nov 2018 02:06:47 +0400 Subject: Correction of possible problems Signed-off-by: Valentin Popov --- classes/handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') 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); } -- cgit v1.2.3