diff options
author | Valentin Popov <info@valentineus.link> | 2018-11-02 01:06:47 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-11-02 01:06:47 +0300 |
commit | 2f04aeab6d7b899a661763e20fdd2e58e635b74d (patch) | |
tree | 3db07ee034b353b38df6cc713a7b4007d2a22301 /classes/handler.php | |
parent | 849d7126d8674faac056b941038f5fd59811e34f (diff) | |
download | local_webhooks-2f04aeab6d7b899a661763e20fdd2e58e635b74d.tar.xz local_webhooks-2f04aeab6d7b899a661763e20fdd2e58e635b74d.zip |
Correction of possible problems
Signed-off-by: Valentin Popov <info@valentineus.link>
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); } |