Fix delete agent secondary ip bug
This commit is contained in:
parent
8ed3042f9a
commit
f76670dd28
|
@ -1078,8 +1078,11 @@ if ($update_agent) {
|
||||||
// If IP is set for deletion, delete first.
|
// If IP is set for deletion, delete first.
|
||||||
if ($action_delete_ip) {
|
if ($action_delete_ip) {
|
||||||
$delete_ip = get_parameter_post('address_list');
|
$delete_ip = get_parameter_post('address_list');
|
||||||
|
if (empty($direccion_agente) === true) {
|
||||||
$direccion_agente = agents_delete_address($id_agente, $delete_ip);
|
$direccideon_agente = agents_delete_address($id_agente, $delete_ip);
|
||||||
|
} else {
|
||||||
|
agents_delete_address($id_agente, $delete_ip);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$values = [
|
$values = [
|
||||||
|
|
Loading…
Reference in New Issue