| @@ -62,10 +62,14 @@ | ||
| 62 | 62 | return false; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | // build notification display data |
| 66 | - $display_data = $displayer->getData(); | |
| 67 | - if (!$display_data) { | |
| 66 | + try { | |
| 67 | + $display_data = $displayer->getData(); | |
| 68 | + if (!$display_data) { | |
| 69 | + throw new Exception('Error building the notification display data', 500); | |
| 70 | + } | |
| 71 | + } catch (Exception $e) { | |
| 68 | 72 | return false; |
| 69 | 73 | } |
| 70 | 74 | |
| 71 | 75 | // set display data "public" properties |