From 8be0a878839089fa376e5d23f7b9b8f65208b539 Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 13 Jul 2007 10:00:35 +0000 Subject: [PATCH] 2007-07-13 Sancho Lerena * operation/agentes/estado_ultimopaquete.php: Fixed problem with modules in tagente_estado with no data (because they has not been initializated, due from it's creation it cannot get real data). This problem was detected because Recon don't create instance for tagente_estado (this issue is also fixed in the next commit). Now this page shown data for data that has a utimestamp != 0. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@558 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 10 ++++++++++ .../operation/agentes/estado_ultimopaquete.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 25f6ce249d..f896f6cb75 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2007-07-13 Sancho Lerena + + * operation/agentes/estado_ultimopaquete.php: Fixed problem with + modules in tagente_estado with no data (because they has not been + initializated, due from it's creation it cannot get real + data). This problem was detected because Recon don't create + instance for tagente_estado (this issue is also fixed in the next + commit). Now this page shown data for data that has a utimestamp + != 0. + 2007-07-02 Raul Mateos * operation/reporting/reporting.php: Reverting change. diff --git a/pandora_console/operation/agentes/estado_ultimopaquete.php b/pandora_console/operation/agentes/estado_ultimopaquete.php index 4917e43938..4cdb068fbe 100644 --- a/pandora_console/operation/agentes/estado_ultimopaquete.php +++ b/pandora_console/operation/agentes/estado_ultimopaquete.php @@ -56,7 +56,7 @@ if (comprueba_login() == 0) { $intervalo_agente = $row_t["intervalo"]; // Get last packet - $sql3='SELECT * FROM tagente_modulo, tagente_estado WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo ORDER BY id_module_group, nombre'; + $sql3='SELECT * FROM tagente_modulo, tagente_estado WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_estado.utimestamp != 0 AND tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo ORDER BY id_module_group, nombre'; $label_group=0; $last_label = ""; echo "

".$lang_label["ag_title"]." > ";