2012-06-04 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/ajax/agent.php: Fixed function search_agent when 
	metaconsole is activated an one of the nodes return no agents.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6412 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-06-04 14:18:21 +00:00
parent 60e2b22c2b
commit 8747f5c2b3
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-06-04 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/ajax/agent.php: Fixed function search_agent when
metaconsole is activated an one of the nodes return no agents.
2012-06-04 Vanessa Gil <vanessa.gil@artica.es>
* godmode/alerts/alert_list.list.php: Fixed bug:

View File

@ -125,7 +125,7 @@ elseif ($search_agents && ($config['metaconsole'] == 1)) {
$agents = agents_get_agents ($filter, array ('id_agente','nombre', 'direccion'));
if ($agents === false)
return;
continue;
foreach ($agents as $agent) {
echo io_safe_output($agent['nombre']) . " (" . io_safe_output($server['server_name']) . ") " . "|" . io_safe_output($agent['id_agente']) . "|" . io_safe_output($server['server_name']) . "|" . io_safe_output($agent['direccion']) . "|". "\n";
}
@ -225,7 +225,7 @@ elseif ($search_agents_2 && ($config['metaconsole'] == 1)) {
$agents = agents_get_agents ($filter, array ('id_agente','nombre', 'direccion'));
if ($agents === false)
$agents = array();
continue;
$data = array();
foreach ($agents as $agent) {