minor fix

This commit is contained in:
alejandro.campos@artica.es 2021-09-30 17:43:55 +02:00
parent 277fcd51ca
commit af4a29d093
1 changed files with 6 additions and 3 deletions

View File

@ -6765,9 +6765,12 @@ function reporting_advanced_sla(
$min_value = null;
}
if ((!(isset($max_value_warning))) && (!(isset($min_value_warning)))) {
$max_value_warning = 0;
$min_value_warning = 0;
if ((!isset($min_value_warning)) || ($min_value_warning == 0)) {
$min_value_warning = null;
}
if ((!isset($max_value_warning)) || ($max_value_warning == 0)) {
$max_value_warning = null;
}
}