2011-01-20 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/estado_generalagente.php: fixed when the agent haven't
	ip address.
	
	Fixes: #3162646



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3752 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-01-20 14:41:12 +00:00
parent d4bbdf4255
commit d546c8875b
2 changed files with 23 additions and 2 deletions

View File

@ -1,4 +1,11 @@
2011-01-19 Miguel de Dios <miguel.dedios@artica.es> 2011-01-20 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_generalagente.php: fixed when the agent haven't
ip address.
Fixes: #3162646
2011-01-20 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager.php: added to call to enterprise functions * godmode/agentes/module_manager.php: added to call to enterprise functions
to delete "pseudo code" of local module when delete in multiple delete to delete "pseudo code" of local module when delete in multiple delete

View File

@ -81,7 +81,21 @@ echo '<a href="index.php?sec=estado&amp;sec2=operation/agentes/ver_agente&amp;fl
//Addresses //Addresses
echo '<tr><td class="datos2"><b>'.__('IP Address').'</b></td>'; echo '<tr><td class="datos2"><b>'.__('IP Address').'</b></td>';
echo '<td class="datos2" colspan="2">'; echo '<td class="datos2" colspan="2">';
print_select (array_unique(array_merge((array)get_agent_address ($id_agente),get_agent_addresses ($id_agente))), "not_used", get_agent_address ($id_agente)); $ips = array();
$addresses = get_agent_addresses ($id_agente);
$address = get_agent_address($id_agente);
if (!empty($addresses)) {
$ips = $addresses;
}
if (!empty($address)) {
$ips = array_merge((array)get_agent_address ($id_agente), $ips);
}
$ips = array_unique($ips);
print_select($ips, "not_used", get_agent_address ($id_agente));
echo '</td></tr>'; echo '</td></tr>';
//OS //OS