From 05054904e0ce5cd47aed681d8511bf223d4beaa2 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 69cb96bf..8a826d56 100644 --- a/library/Icingadb/Widget/Detail/CheckStatistics.php +++ b/library/Icingadb/Widget/Detail/CheckStatistics.php @@ -68,7 +68,7 @@ SVG; $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) {