2008-09-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/agentes/configurar_agente.php: Fixed small bug when renaming agent. Changed a string to a duplicate with the same meaning. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1104 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6516651aa9
commit
6974f7b8a7
|
@ -1,3 +1,8 @@
|
|||
2008-09-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* 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 <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* include/styles/pandora.css: Removed some duplicate entries while
|
||||
|
|
|
@ -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 '<h3 class="error">'.__('No agent name specified').'</h3>';
|
||||
} 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 '<h3 class="error">'.__('There is already an agent in the database with this name').'</h3>';
|
||||
} else {
|
||||
//If different IP is specified than previous, add the IP
|
||||
|
|
Loading…
Reference in New Issue