From 6843ffdf15ac2a50f27fc6b6a3dfc948fad4ac06 Mon Sep 17 00:00:00 2001 From: ramonn Date: Tue, 26 Oct 2010 13:18:34 +0000 Subject: [PATCH] 2010-10-26 Ramon Novoa * operation/agentes/stat_win.php: Hide baseline checkbox when not available. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3466 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/stat_win.php | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 26638405b6..dfbd00e2e4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-26 Ramon Novoa + + * operation/agentes/stat_win.php: Hide baseline checkbox when not + available. + 2010-10-26 Junichi Satoh * godmode/db/db_info.php: Fixed uninitialized variable is used. diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 9cbfde2450..492887bfce 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -228,9 +228,10 @@ echo ''.__('Show alerts').''; print_checkbox ("draw_alerts", 1, (bool) $draw_alerts); -echo ''.__('Draw baseline').''; - -print_checkbox ("baseline", 1, (bool) $baseline); +if ($config['enterprise_installed'] && $graph_type == "sparse") { + echo ''.__('Draw baseline').''; + print_checkbox ("baseline", 1, (bool) $baseline); +} echo '';