mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-25 00:59:34 -05:00
$row->state->in_downtime and $row->state->is_acknowledged are used as boolens in if condition
This commit is contained in:
parent
ab4728ad54
commit
34626cbec5
1 changed files with 2 additions and 2 deletions
|
|
@ -134,10 +134,10 @@ class IcingaDbState
|
|||
if ($row->state->last_state_change !== null) {
|
||||
$node->setLastStateChange($row->state->last_state_change/1000);
|
||||
}
|
||||
if ($row->state->in_downtime === 'y') {
|
||||
if ($row->state->in_downtime) {
|
||||
$node->setDowntime(true);
|
||||
}
|
||||
if ($row->state->is_acknowledged !== 'n') {
|
||||
if ($row->state->is_acknowledged) {
|
||||
$node->setAck(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue