diff --git a/modules/monitoring/application/views/scripts/show/components/checksource.phtml b/modules/monitoring/application/views/scripts/show/components/checksource.phtml index bc90581d1..5405e0d22 100644 --- a/modules/monitoring/application/views/scripts/show/components/checksource.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checksource.phtml @@ -4,21 +4,19 @@ translate('Check Source') ?> - escape($object->check_source) ?> - - - -is_reachable !== null): ?> - - - translate('Reachable') ?> - - - is_reachable) { - echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok')); - } else { - echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical')); - } ?> +

+ is_reachable !== null) { + if ((bool) $object->is_reachable) { + echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok')); + } else { + echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical')); + } + } ?> + escape($object->check_source) ?> + is_reachable !== null): ?> + is_reachable ? $this->translate('is reachable') : $this->translate('is not reachable') ?> + +