From 632ad8faae59694c8f2d4f9aa9251aa2c3543f32 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 28 Jan 2013 11:01:07 +0000 Subject: [PATCH] 2013-01-28 Miguel de Dios * godmode/agentes/module_manager.php: fixed the PHP notices in the policy module editor. Fixes: #3602272 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 ++++ .../godmode/agentes/module_manager.php | 34 ++++++++++--------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2ff970cce3..bef957ed74 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-01-28 Miguel de Dios + + * godmode/agentes/module_manager.php: fixed the PHP notices in the + policy module editor. + + Fixes: #3602272 + 2013-01-28 Junichi Satoh * include/help/ja/help_events_replication.php, diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index dc6d546c77..215d940fea 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -82,22 +82,24 @@ if (strstr($sec2, "enterprise/godmode/policies/policies") !== false) { unset($modules['predictionserver']); } -if(check_acl ($config['id_user'], $agent['id_grupo'], "AW")) { - // Create module/type combo - echo '
'; - html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' ); - html_print_input_hidden ('edit_module', 1); - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ""; - echo "".__("Get more modules in Pandora FMS Library").""; - echo ""; - echo ''; - echo ''; - echo "
"; +if (isset($agent)) { + if (check_acl ($config['id_user'], $agent['id_grupo'], "AW")) { + // Create module/type combo + echo '
'; + html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' ); + html_print_input_hidden ('edit_module', 1); + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ""; + echo "".__("Get more modules in Pandora FMS Library").""; + echo ""; + echo ''; + echo ''; + echo "
"; + } } echo "";