CheckStatistics: Don't attempt to visualize next checks..

..if both active and passive checks are disabled.

fixes #930
This commit is contained in:
Johannes Meyer 2023-11-14 11:53:32 +01:00
parent 012b3a1626
commit 05054904e0

View file

@ -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) {