Commit d3bf5f04 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) save 0 values in firewall_virtual_ip_edit.php (https://github.com/opnsense/core/pull/570)

(cherry picked from commit 10a42da4)
parent 5712c000
......@@ -185,7 +185,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// 1-on-1 copy attributes
foreach (array('mode', 'interface', 'descr', 'type', 'subnet_bits', 'subnet', 'vhid'
,'advskew','advbase','password') as $fieldname) {
if (!empty($pconfig[$fieldname])) {
if (isset($pconfig[$fieldname]) && $pconfig[$fieldname] != "") {
$vipent[$fieldname] = $pconfig[$fieldname];
}
}
......
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