mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-6724-10965-No-se-puede-crear-agente-con-IP-duplicada-mediante-llamada-de-API-set-new-agent' into 'develop'
fixed agent creation with unique ip condition See merge request artica/pandorafms!3604
This commit is contained in:
commit
3dc551f1e5
@ -1570,7 +1570,9 @@ function api_set_new_agent($thrash1, $thrash2, $other, $thrash3)
|
||||
$nombre_agente = $alias;
|
||||
}
|
||||
|
||||
if ($direccion_agente != '') {
|
||||
$exists_ip = false;
|
||||
|
||||
if ($config['unique_ip'] && $direccion_agente != '') {
|
||||
$exists_ip = db_get_row_sql('SELECT direccion FROM tagente WHERE direccion = "'.$direccion_agente.'"');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user