diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/notification.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php index 2b847a5fa..de3c64bef 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -112,14 +112,18 @@ if ($CONFIG->debug) error_log("Sending message to $guid using $method"); - // Trigger handler and retrieve result. - $result[$guid][$method] = $handler( - $from ? get_entity($from) : NULL, // From entity - get_entity($guid), // To entity - $subject, // The subject - $message, // Message - $params // Params - ); + // Trigger handler and retrieve result.
+ try { + $result[$guid][$method] = $handler( + $from ? get_entity($from) : NULL, // From entity + get_entity($guid), // To entity + $subject, // The subject + $message, // Message + $params // Params + );
+ } catch (Exception $e) {
+ error_log($e->getMessage());
+ } } } |