diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0a38d47260..e6cfd2c7f5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2008-09-19 Evi Vanoost + + * godmode/agentes/configurar_agente.php: Fixed small bug when renaming + agent. Changed a string to a duplicate with the same meaning. + 2008-09-19 Evi Vanoost * include/styles/pandora.css: Removed some duplicate entries while diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index c8c81278cd..ab1902eaba 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -128,7 +128,7 @@ if (isset ($_POST["create_agent"])) { // Create a new and shiny agent $agent_creation_error = __('No agent name specified'); $agent_created_ok = 0; } elseif (dame_agente_id ($nombre_agente) > 0) { - $agent_creation_error = __('An agent with this name already exists'); + $agent_creation_error = __('There is already an agent in the database with this name'); $agent_created_ok = 0; } else { $sql = sprintf ("INSERT INTO tagente @@ -483,7 +483,8 @@ if (isset($_POST["update_agent"])) { // if modified some agent paramenter //Verify if there is another agent with the same name but different ID if ($nombre_agente == "") { echo '

'.__('No agent name specified').'

'; - } elseif ($id_agente != dame_agente_id ($nombre_agente)) { + //If there is an agent with the same name, but a different ID + } elseif (dame_agente_id ($nombre_agente) > 0 && dame_agente_id ($nombre_agente) != $id_agente) { echo '

'.__('There is already an agent in the database with this name').'

'; } else { //If different IP is specified than previous, add the IP