From 1d3cecf3b76173f5644502ce309df83147ef0ac4 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 13 Jun 2013 11:41:56 +0000 Subject: [PATCH] 2013-06-13 Miguel de Dios * godmode/agentes/agent_manager.php: fixed the show server as none when this server is not exist. Fixes: #2264 MERGED FROM THE BRANCH PANDORA_4.0 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8312 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 9 +++++++++ pandora_console/godmode/agentes/agent_manager.php | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 595fb55b8f..b63fb6ccb1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2013-06-13 Miguel de Dios + + * godmode/agentes/agent_manager.php: fixed the show server as none + when this server is not exist. + + Fixes: #2264 + + MERGED FROM THE BRANCH PANDORA_4.0 + 2013-06-12 Miguel de Dios * extensions/insert_data.php: fixed the label of notice about the diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index b3ee562368..5ea1446d55 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -215,6 +215,10 @@ $table->data[5][1] .= ui_print_os_icon ($id_os, false, true); $table->data[5][1] .= ''; // Network server +$servers = servers_get_names(); +if (!array_key_exists($server_name, $servers)) { + $server_Name = 0; //Set the agent have not server. +} $table->data[6][0] = __('Server'); if ($new_agent) { //Set first server by default.