2011-07-27 Ramon Novoa <rnovoa@artica.es>

* operation/events/events_list.php: Hide agent details unless we have
	  a valid agent id.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4640 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-07-27 18:02:53 +00:00
parent 6c305205ba
commit 9494c5a7dc
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2011-07-27 Ramon Novoa <rnovoa@artica.es>
* operation/events/events_list.php: Hide agent details unless we have
a valid agent id.
2011-07-27 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/configurar_agente.php: Fixed bad parameters

View File

@ -557,11 +557,13 @@ foreach ($result as $event) {
$string .= '<b>' . __('Type') . '</b></td><td align="left">';
$string .= events_print_type_img ($event["event_type"], true).' '.events_print_type_description($event["event_type"], true);
$string .= '</td></tr><tr>';
$string .= '<td align="left" valign="top" width="15%">';
$string .= '<b>' . __('Agent name') . '</b></td><td align="left">';
$string .= ui_print_agent_name ($event["id_agente"], true);
$string .= '</td></tr><tr>';
if ($event["id_agente"] != 0) {
$string .= '<td align="left" valign="top" width="15%">';
$string .= '<b>' . __('Agent name') . '</b></td><td align="left">';
$string .= ui_print_agent_name ($event["id_agente"], true);
$string .= '</td></tr><tr>';
}
if ($event["id_agentmodule"] != 0) {
$string .= '<td align="left" valign="top" width="15%">';