Commit 8d28488f authored by Ad Schellevis's avatar Ad Schellevis

(legacy, firewall_virtual_ip_edit.php) apply issue on new vip

parent 5b67fa4a
...@@ -205,11 +205,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -205,11 +205,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$toapplylist = array(); $toapplylist = array();
} }
if (isset($id)) { if (isset($id)) {
if (isset($toapplylist[$id])) { // save existing content before changing it
$toapplylist[$id] = $a_vip[$id]; $toapplylist[$id] = $a_vip[$id];
} else { } else {
$toapplylist[] = $a_vip[$id]; // new entry, no old data
} $toapplylist[count($a_vip)] = array();
} }
if (isset($id)) { if (isset($id)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment