2014-07-23 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/estado_generalagente.php: fixed the show the
	agent access box when the agent is new without data.
	
	INCIDENT: #1078




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2014-07-23 12:48:28 +00:00
parent e62792c36b
commit 1dc69b6e21
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2014-07-23 Miguel de Dios <miguel.dedios@artica.es>
* 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 <miguel.dedios@artica.es>
* godmode/agentes/agent_wizard.snmp_explorer.php,

View File

@ -477,7 +477,11 @@ $data[0] .= '<fieldset class="databox" style="position: static;">
'</fieldset>';
// 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] .= '<fieldset class="databox" style="position: static;">
<legend style="text-align:left; color: #666;">' .
__('Agent access rate (24h)') .