From 30689117a61f2f67843a00a37b66575b06604d05 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 14 Nov 2023 11:53:32 +0100 Subject: [PATCH] CheckStatistics: Don't attempt to visualize next checks.. ..if both active and passive checks are disabled. fixes #930 --- library/Icingadb/Widget/Detail/CheckStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Widget/Detail/CheckStatistics.php b/library/Icingadb/Widget/Detail/CheckStatistics.php index 69cb96bff..8a826d565 100644 --- a/library/Icingadb/Widget/Detail/CheckStatistics.php +++ b/library/Icingadb/Widget/Detail/CheckStatistics.php @@ -68,7 +68,7 @@ protected function assembleBody(BaseHtmlElement $body) $now = time(); $executionTime = ($this->object->state->execution_time / 1000) + ($this->object->state->latency / 1000); - $nextCheckTime = $this->object->state->next_check !== null + $nextCheckTime = $this->object->state->next_check !== null && ! $this->isChecksDisabled() ? $this->object->state->next_check->getTimestamp() : null; if ($this->object->state->is_overdue) {