From 62b3005c4371db1ad82b7980a1e17975afabac89 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Mon, 25 Oct 2010 02:30:46 +0000 Subject: [PATCH] 2010-10-25 Junichi Satoh * godmode/agentes/module_manager_editor_network.php: Added enterprise check before isModuleAdopt(). It is not in opensource version. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3454 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/agentes/module_manager_editor_network.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 23f85d2f58..7373a4d546 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-25 Junichi Satoh + + * godmode/agentes/module_manager_editor_network.php: Added enterprise + check before isModuleAdopt(). It is not in opensource version. + 2010-10-22 Ramon Novoa * include/styles/pandora_minimal.css, include/fgraph.php, diff --git a/pandora_console/godmode/agentes/module_manager_editor_network.php b/pandora_console/godmode/agentes/module_manager_editor_network.php index 60f5d76096..0f5d52a4ff 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_network.php +++ b/pandora_console/godmode/agentes/module_manager_editor_network.php @@ -13,7 +13,7 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -enterprise_include_once('include/functions_policies.php'); +$isFunctionPolicies = enterprise_include_once('include/functions_policies.php'); $disabledBecauseInPolicy = false; $disabledTextBecauseInPolicy = ''; @@ -54,7 +54,7 @@ $snmp_versions['3'] = 'v. 3'; $data = array (); $data[0] = __('SNMP community'); $adopt = false; -if (isset($id_agent_module)) { +if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK && isset($id_agent_module)) { $adopt = isModuleAdopt($id_agent_module); } if (!$adopt) {