diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml index 7df82b32d..b69e0af0f 100644 --- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -1,9 +1,10 @@ active_checks_enabled; ?> - active_checks_enabled ? $this->translate('Last check') : $this->translate('Last update') ?> + translate('Last check') : $this->translate('Last update') ?> - active_checks_enabled ? $this->translate('Next check') : $this->translate('Next update') ?> + translate('Next check') : $this->translate('Next update') ?> - active_checks_enabled && $this->hasPermission('monitoring/command/schedule-check')) { + hasPermission('monitoring/command/schedule-check')) { if ($object->getType() === $object::TYPE_SERVICE) { echo $this->qlink( $this->translate('Reschedule'), @@ -47,7 +48,7 @@ } } ?> state !== 99) { - if ((bool) $object->active_checks_enabled) { + if ($activeChecksEnabled) { echo $this->timeUntil($object->next_check); } else { echo sprintf($this->translate('expected %s'), $this->timeUntil($object->next_update));