Filter with not init history db. Ticket #158

(cherry picked from commit 2cbe165d25)
This commit is contained in:
Arturo Gonzalez 2017-01-17 10:50:46 +01:00
parent 9791f2aacb
commit 3053322d60
1 changed files with 1 additions and 1 deletions

View File

@ -4832,7 +4832,7 @@ function reporting_availability($report, $content, $date=false, $time=false) {
$aux_id_agents = $agents;
$i=0;
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))){
unset($items[$i]);
}