From 8f4599fb15e8d16ef511e6ea1ed24d5787b4e3d9 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 10 Aug 2010 10:42:26 +0000 Subject: [PATCH] 2010-08-10 Sergio Martin * operation/agentes/networkmap.php: Fixed several notices. When a category has not maps, the menu is not showed git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3119 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/networkmap.php | 1 + 2 files changed, 6 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1d4bcf29b6..cce09a3fb1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-08-10 Sergio Martin + + * operation/agentes/networkmap.php: Fixed several notices. When + a category has not maps, the menu is not showed + 2010-08-10 Sergio Martin * images/status_sets/default/module_unknown.png diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index a5a884961f..654b819328 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -217,6 +217,7 @@ if($delete_networkmap || $add_networkmap || $save_networkmap) { if($id_networkmap == 0) { echo "
".__('There are no defined maps in this view')."
"; + return; } if(!empty($name)) {