fixed agent creation with unique ip condition
This commit is contained in:
parent
33fbdd1819
commit
2632256c10
|
@ -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…
Reference in New Issue