From 9494c5a7dcafd28eae726c5cf56ce91f39b5ee6a Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 27 Jul 2011 18:02:53 +0000 Subject: [PATCH] 2011-07-27 Ramon Novoa * 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 --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/events/events_list.php | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5ae9f298cb..f59209d873 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-27 Ramon Novoa + + * operation/events/events_list.php: Hide agent details unless we have + a valid agent id. + 2011-07-27 Sergio Martin * godmode/agentes/configurar_agente.php: Fixed bad parameters diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index b5928a711d..4dc91e60bd 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -557,11 +557,13 @@ foreach ($result as $event) { $string .= '' . __('Type') . ''; $string .= events_print_type_img ($event["event_type"], true).' '.events_print_type_description($event["event_type"], true); $string .= ''; - $string .= ''; - $string .= '' . __('Agent name') . ''; - $string .= ui_print_agent_name ($event["id_agente"], true); - $string .= ''; + if ($event["id_agente"] != 0) { + $string .= ''; + $string .= '' . __('Agent name') . ''; + $string .= ui_print_agent_name ($event["id_agente"], true); + $string .= ''; + } if ($event["id_agentmodule"] != 0) { $string .= '';