diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index 642fd7b57..fb53fef55 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -26,15 +26,26 @@ $contactHelper = $this->getHelper('ContactFlags'); ) ?>">contact_name ?> (contact_alias ?>) %1$s' => $contact->contact_email, - 'Pager: %s' => $contact->contact_pager, - 'Service notification period: %s' => $contact->contact_notify_service_timeperiod, - 'Host notification period: %s' => $contact->contact_notify_host_timeperiod - ) as $format => $value): + 'eMail' => array( + $contact->contact_email, '%1$s' + ), + 'Pager' => $contact->contact_pager, + 'Service notification period' => $contact->contact_notify_service_timeperiod, + 'Host notification period' => $contact->contact_notify_host_timeperiod + ) as $key => $value): + if (is_string($value)) { + $format = '%s'; + } else { + $format = $value[1]; + $value = $value[0]; + } if ($value): ?>