Skip to content

Commit 0505490

Browse files
committed
CheckStatistics: Don't attempt to visualize next checks..
..if both active and passive checks are disabled. fixes #930
1 parent 012b3a1 commit 0505490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Icingadb/Widget/Detail/CheckStatistics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function assembleBody(BaseHtmlElement $body)
6868
$now = time();
6969
$executionTime = ($this->object->state->execution_time / 1000) + ($this->object->state->latency / 1000);
7070

71-
$nextCheckTime = $this->object->state->next_check !== null
71+
$nextCheckTime = $this->object->state->next_check !== null && ! $this->isChecksDisabled()
7272
? $this->object->state->next_check->getTimestamp()
7373
: null;
7474
if ($this->object->state->is_overdue) {

0 commit comments

Comments
 (0)