#10156 fixed error 500 in wizard reporting

This commit is contained in:
Daniel Cebrian 2023-01-17 10:25:08 +01:00
parent 2db24935c0
commit 3fabe05c6e

View File

@ -8802,6 +8802,8 @@ function reporting_availability($report, $content, $date=false, $time=false)
$data = [];
$style = io_safe_output($content['style']);
if (is_array($style)) {
if ($style['hide_notinit_agents']) {
$aux_id_agents = $agents;
$i = 0;
@ -8822,6 +8824,7 @@ function reporting_availability($report, $content, $date=false, $time=false)
$i++;
}
}
}
if (empty($items) === false
&& (bool) $content['compare_work_time'] === true