2007-07-13 Sancho Lerena <slerena@artica.es>

* 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
This commit is contained in:
slerena 2007-07-13 10:00:35 +00:00
parent ceb24a2592
commit 8be0a87883
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2007-07-13 Sancho Lerena <slerena@artica.es>
* 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 <raulofpandora@gmail.com>
* operation/reporting/reporting.php: Reverting change.

View File

@ -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 "<h2>".$lang_label["ag_title"]." &gt; ";