diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 183ff6c9da..3e4777a3f2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2014-07-23 Miguel de Dios + + * operation/agentes/estado_generalagente.php: fixed the show the + agent access box when the agent is new without data. + + INCIDENT: #1078 + 2014-07-23 Miguel de Dios * godmode/agentes/agent_wizard.snmp_explorer.php, diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php index 303dffa38c..0c3f792dee 100644 --- a/pandora_console/operation/agentes/estado_generalagente.php +++ b/pandora_console/operation/agentes/estado_generalagente.php @@ -477,7 +477,11 @@ $data[0] .= '
'
'; // ACCESS RATE GRAPH -if ($config["agentaccess"]) { +$access_agent = db_get_value_sql("SELECT COUNT(id_agent) + FROM tagent_access + WHERE id_agent = " . $id_agente); + +if ($config["agentaccess"] && $access_agent > 0) { $data[0] .= '
' . __('Agent access rate (24h)') .