mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
(legacy) don't write empty xml tags in ipsec phase1/2 edit
This commit is contained in:
parent
29d4755b71
commit
3dbfa18733
@ -363,7 +363,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
foreach (explode(",",$copy_fields) as $fieldname) {
|
||||
$fieldname = trim($fieldname);
|
||||
if(isset($pconfig[$fieldname])) {
|
||||
if(!empty($pconfig[$fieldname])) {
|
||||
$ph1ent[$fieldname] = $pconfig[$fieldname];
|
||||
}
|
||||
}
|
||||
|
||||
@ -383,7 +383,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// 1-on-1 copy
|
||||
foreach (explode(",",$copy_fields) as $fieldname) {
|
||||
$fieldname = trim($fieldname);
|
||||
if(isset($pconfig[$fieldname])) {
|
||||
if(!empty($pconfig[$fieldname])) {
|
||||
$ph2ent[$fieldname] = $pconfig[$fieldname];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user