From 76864b194a422cff0f8552e1aa7861b4b86c23fb Mon Sep 17 00:00:00 2001 From: darode Date: Thu, 11 Aug 2011 12:05:08 +0000 Subject: [PATCH] 2011-08-11 Dario Rodriguez * extensions/net_tools.php: Fixed a small bug related with agent without IP git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4718 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extensions/net_tools.php | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 030c122c85..311259c925 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-08-11 Dario Rodriguez + + * extensions/net_tools.php: Fixed a small bug related with agent + without IP + 2011-08-11 Sergio Martin * operation/agentes/stat_win.php: Fixed bad url build with diff --git a/pandora_console/extensions/net_tools.php b/pandora_console/extensions/net_tools.php index d0706a6ed0..371b3598c4 100644 --- a/pandora_console/extensions/net_tools.php +++ b/pandora_console/extensions/net_tools.php @@ -21,7 +21,10 @@ function main_net_tools () { $id_agente = get_parameter ("id_agente"); $ip = db_get_sql ("SELECT direccion FROM tagente WHERE id_agente = $id_agente"); - + if ($ip == "") { + echo "

The agent hasn't got IP

"; + return; + } echo "
"; echo "
"; echo "";