Skip to content

Commit

Permalink
(legacy, firewall_virtual_ip_edit.php) apply issue on new vip
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Oct 11, 2015
1 parent 5b67fa4 commit 8d28488
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/www/firewall_virtual_ip_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ function find_last_used_vhid() {
$toapplylist = array();
}
if (isset($id)) {
if (isset($toapplylist[$id])) {
$toapplylist[$id] = $a_vip[$id];
} else {
$toapplylist[] = $a_vip[$id];
}
// save existing content before changing it
$toapplylist[$id] = $a_vip[$id];
} else {
// new entry, no old data
$toapplylist[count($a_vip)] = array();
}

if (isset($id)) {
Expand Down

0 comments on commit 8d28488

Please sign in to comment.