fixed errors availability reports

This commit is contained in:
Daniel Barbero Martin 2020-10-07 12:12:06 +02:00
parent ac47db4986
commit c4c987d6c1
1 changed files with 6 additions and 6 deletions

View File

@ -3435,12 +3435,12 @@ function reporting_html_availability($table, $item, $pdf=0)
$table_row[] = '--';
} else {
$table_row[] = $row['agent'];
$item = $row['availability_item'];
$item_name = $row['availability_item'];
if ((bool) $row['compare'] === true) {
$item .= ' ('.__('24 x 7').')';
$item_name .= ' ('.__('24 x 7').')';
}
$table_row[] = $item;
$table_row[] = $item_name;
}
if ($row['time_total'] != 0 && $item['fields']['total_time']) {
@ -3568,12 +3568,12 @@ function reporting_html_availability($table, $item, $pdf=0)
$table_row2[] = '--';
} else {
$table_row2[] = $row['agent'];
$item = $row['availability_item'];
$item_name = $row['availability_item'];
if ((bool) $row['compare'] === true) {
$item .= ' ('.__('24 x 7').')';
$item_name .= ' ('.__('24 x 7').')';
}
$table_row2[] = $item;
$table_row2[] = $item_name;
}
if ($item['fields']['total_checks']) {