diff --git a/modules/monitoring/application/views/scripts/list/eventhistory.phtml b/modules/monitoring/application/views/scripts/list/eventhistory.phtml
index 2aedcd59b..538702a64 100644
--- a/modules/monitoring/application/views/scripts/list/eventhistory.phtml
+++ b/modules/monitoring/application/views/scripts/list/eventhistory.phtml
@@ -31,6 +31,7 @@ if (count($history) === 0) {
case 'notify':
$icon = 'bell';
$title = $this->translate('Notification');
+ $msg = $msg ?: $this->translate('This notification was not sent out to any contact.');
break;
case 'comment':
$icon = 'comment';
diff --git a/modules/monitoring/application/views/scripts/list/notifications.phtml b/modules/monitoring/application/views/scripts/list/notifications.phtml
index 3d1598a69..f94266210 100644
--- a/modules/monitoring/application/views/scripts/list/notifications.phtml
+++ b/modules/monitoring/application/views/scripts/list/notifications.phtml
@@ -52,6 +52,7 @@ if (count($notifications) === 0) {
contact): ?>
+ notification_contact_name): ?>
= sprintf(
$this->translate('Sent to %s'),
$this->qlink(
@@ -60,6 +61,9 @@ if (count($notifications) === 0) {
array('contact_name' => $notification->notification_contact_name)
)
) ?>
+
+ = $this->translate('This notification was not sent out to any contact.'); ?>
+
diff --git a/modules/monitoring/application/views/scripts/show/history.phtml b/modules/monitoring/application/views/scripts/show/history.phtml
index 0a0205e72..5c1a1d27c 100644
--- a/modules/monitoring/application/views/scripts/show/history.phtml
+++ b/modules/monitoring/application/views/scripts/show/history.phtml
@@ -57,11 +57,11 @@ function contactsLink($match, $view) {
$title = $this->translate('Notification');
$stateClass = $isService ? Service::getStateText($event->state) : Host::getStateText($event->state);
- $msg = preg_replace_callback(
+ $msg = $msg ? preg_replace_callback(
'/^\[([^\]]+)\]/',
function($match) use ($self) { return contactsLink($match, $self); },
$msg
- );
+ ) : $this->translate('This notification was not sent out to any contact.');
break;
case 'comment':
$icon = 'comment';