From 3053322d600feff56cdfaba81fa236c18449d769 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 17 Jan 2017 10:50:46 +0100 Subject: [PATCH] Filter with not init history db. Ticket #158 (cherry picked from commit 2cbe165d2513cb9ca8d252a978caa8ca08a9e7eb) --- pandora_console/include/functions_reporting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index f95d3f54b1..534ff2308b 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -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]); }