mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +02:00
Filter with not init history db. Ticket #158
This commit is contained in:
parent
e2b749a34d
commit
2cbe165d25
@ -4810,7 +4810,7 @@ function reporting_availability($report, $content, $date=false, $time=false) {
|
|||||||
$aux_id_agents = $agents;
|
$aux_id_agents = $agents;
|
||||||
$i=0;
|
$i=0;
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$utimestamp = db_get_value('utimestamp', 'tagente_datos', 'id_agente_modulo', $item['id_agent_module']);
|
$utimestamp = db_get_value('utimestamp', 'tagente_datos', 'id_agente_modulo', $item['id_agent_module'], true);
|
||||||
if (($utimestamp === false) || (intval($utimestamp) > intval($datetime_to))){
|
if (($utimestamp === false) || (intval($utimestamp) > intval($datetime_to))){
|
||||||
unset($items[$i]);
|
unset($items[$i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user