Commit 29d4755b authored by Ad Schellevis's avatar Ad Schellevis

(legacy) openvpn don't write empty xml tags to avoid issues with backend

parent 73f382fb
......@@ -264,7 +264,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
foreach (explode(",",$copy_fields) as $fieldname) {
$fieldname = trim($fieldname);
if(isset($pconfig[$fieldname])) {
if(!empty($pconfig[$fieldname])) {
$client[$fieldname] = $pconfig[$fieldname];
}
}
......
......@@ -167,7 +167,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// 1 on 1 copy of config attributes
foreach (explode(",",$all_form_fields) as $fieldname) {
$fieldname = trim($fieldname);
if(isset($pconfig[$fieldname])) {
if(!empty($pconfig[$fieldname])) {
$csc[$fieldname] = $pconfig[$fieldname];
}
}
......
......@@ -329,7 +329,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
foreach (explode(",",$copy_fields) as $fieldname) {
$fieldname = trim($fieldname);
if(isset($pconfig[$fieldname])) {
if(!empty($pconfig[$fieldname])) {
$server[$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