diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 6313c7d57c..4c7438ebb8 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -8368,8 +8368,10 @@ function reporting_advanced_sla( } } else { $time_out += $time_interval; - if ($wt_check['wt_in_downtime']) { - $time_out += $wt_check['downtime_interval']; + if (isset($wt_check['wt_in_downtime']) === true) { + if ($wt_check['wt_in_downtime']) { + $time_out += $wt_check['downtime_interval']; + } } // Ignore worktime, is in an invalid period: @@ -14860,9 +14862,7 @@ function reporting_sla_get_status_period_compliance( return REPORT_STATUS_ERR; } - if ($priority_mode == REPORT_PRIORITY_MODE_OK - && $sla['time_ok'] > 0 && ($time_compliance >= $sla_limit) - ) { + if ($sla['time_ok'] > 0 && ($time_compliance >= $sla_limit)) { return REPORT_STATUS_OK; }