mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fix agent edtion unique ip issues
This commit is contained in:
parent
e5cd925925
commit
bf5a5e16dc
@ -1047,7 +1047,7 @@ if ($update_agent) {
|
|||||||
// If there is an agent with the same name, but a different ID.
|
// If there is an agent with the same name, but a different ID.
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($unique_ip && $direccion_agente != '') {
|
if ($direccion_agente !== $address_list && (bool) $unique_ip === true && $direccion_agente != '') {
|
||||||
$sql = 'SELECT direccion FROM tagente WHERE direccion = "'.$direccion_agente.'"';
|
$sql = 'SELECT direccion FROM tagente WHERE direccion = "'.$direccion_agente.'"';
|
||||||
$exists_ip = db_get_row_sql($sql);
|
$exists_ip = db_get_row_sql($sql);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user