From 203fcf3ed94d0e68e08dba2deb6abdd3224ea3ff Mon Sep 17 00:00:00 2001 From: marostegui Date: Wed, 22 Apr 2009 08:06:45 +0000 Subject: [PATCH] 2009-04-22 Manuel Arostegui * operation/agentes/sla_view.php: Fixed bug #2777504 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1641 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/agentes/sla_view.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ed78b8655d..65bd2b747d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2009-04-22 Manuel Arostegui + + * operation/agentes/sla_view.php: Fixed bug #2777504 + 2009-04-21 Evi Vanoost * include/functions_ui.php: Added get_url_refresh which gets the correct diff --git a/pandora_console/operation/agentes/sla_view.php b/pandora_console/operation/agentes/sla_view.php index 1203ec57eb..398b972775 100644 --- a/pandora_console/operation/agentes/sla_view.php +++ b/pandora_console/operation/agentes/sla_view.php @@ -35,6 +35,11 @@ $id_agent = get_parameter ("id_agente", 0); $interval = get_agent_interval ($id_agent); $modules = get_agent_modules ($id_agent, '*', array ('disabled' => 0, 'history_data' => 1, 'delete_pending' => 0)); +if (empty ($modules)) { + print_error_message (__("There are no modules to evaluate the S.L.A. from")); + return; +} + $offset = get_parameter ("offset", 0); // Get all module from agent