2009-05-04 Evi Vanoost <vanooste@rcbi.rochester.edu>

* godmode/agentes/configurar_agente.php: get_agent_id changed and caused
	erroneous behaviour. Fixed it.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1675 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
guruevi 2009-05-04 17:58:16 +00:00
parent 7d0b58495b
commit d88f81a51c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-04 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/agentes/configurar_agente.php: get_agent_id changed and caused
erroneous behaviour. Fixed it.
2009-05-04 Esteban Sánchez <estebans@artica.es>
* extensions/dbmanager.php: Code cleanup, making it easier an without

View File

@ -286,7 +286,7 @@ if (isset($_POST["update_agent"])) { // if modified some agent paramenter
if ($nombre_agente == "") {
echo '<h3 class="error">'.__('No agent name specified').'</h3>';
//If there is an agent with the same name, but a different ID
} elseif (get_agent_id ($nombre_agente) != $id_agente) {
} elseif (get_agent_id ($nombre_agente) > 0 && get_agent_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