mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
StateListItem: Also don't show last state change if its zero
fixes #622
This commit is contained in:
parent
496d333a14
commit
7dd469aef3
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ abstract class StateListItem extends BaseListItem
|
|||
$since->prepend(t('Overdue') . ' ');
|
||||
$since->prependHtml(new Icon(Icons::WARNING));
|
||||
return $since;
|
||||
} elseif ($this->state->last_state_change !== null) {
|
||||
} elseif ($this->state->last_state_change > 0) {
|
||||
return new TimeSince($this->state->last_state_change);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue