From 34626cbec5ca4ccdf4e6042d1538804cd0ccc7b1 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 15 Feb 2022 12:44:24 +0100 Subject: [PATCH] $row->state->in_downtime and $row->state->is_acknowledged are used as boolens in if condition --- library/Businessprocess/State/IcingaDbState.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index a55ffc3..34d6667 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -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); }