Fix delete agent secondary ip bug

This commit is contained in:
Calvo 2021-11-24 14:39:42 +01:00
parent 8ed3042f9a
commit f76670dd28
1 changed files with 5 additions and 2 deletions

View File

@ -1078,8 +1078,11 @@ if ($update_agent) {
// If IP is set for deletion, delete first.
if ($action_delete_ip) {
$delete_ip = get_parameter_post('address_list');
$direccion_agente = agents_delete_address($id_agente, $delete_ip);
if (empty($direccion_agente) === true) {
$direccideon_agente = agents_delete_address($id_agente, $delete_ip);
} else {
agents_delete_address($id_agente, $delete_ip);
}
}
$values = [