mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#10156 fixed error 500 in wizard reporting
This commit is contained in:
parent
2db24935c0
commit
3fabe05c6e
@ -8802,24 +8802,27 @@ function reporting_availability($report, $content, $date=false, $time=false)
|
|||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
$style = io_safe_output($content['style']);
|
$style = io_safe_output($content['style']);
|
||||||
if ($style['hide_notinit_agents']) {
|
|
||||||
$aux_id_agents = $agents;
|
|
||||||
$i = 0;
|
|
||||||
foreach ($items as $item) {
|
|
||||||
$utimestamp = db_get_value(
|
|
||||||
'utimestamp',
|
|
||||||
'tagente_datos',
|
|
||||||
'id_agente_modulo',
|
|
||||||
$item['id_agent_module'],
|
|
||||||
true
|
|
||||||
);
|
|
||||||
if (($utimestamp === false)
|
|
||||||
|| (intval($utimestamp) > intval($datetime_to))
|
|
||||||
) {
|
|
||||||
unset($items[$i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$i++;
|
if (is_array($style)) {
|
||||||
|
if ($style['hide_notinit_agents']) {
|
||||||
|
$aux_id_agents = $agents;
|
||||||
|
$i = 0;
|
||||||
|
foreach ($items as $item) {
|
||||||
|
$utimestamp = db_get_value(
|
||||||
|
'utimestamp',
|
||||||
|
'tagente_datos',
|
||||||
|
'id_agente_modulo',
|
||||||
|
$item['id_agent_module'],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
if (($utimestamp === false)
|
||||||
|
|| (intval($utimestamp) > intval($datetime_to))
|
||||||
|
) {
|
||||||
|
unset($items[$i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user