diff --git a/resources/switch.php b/resources/switch.php index 4881b81f21..10a8bc8e05 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -459,6 +459,13 @@ function save_var_xml() { } elseif ($row['var_hostname'] == $hostname) { $xml .= "\n"; } + $var_cmd = 'set'; + if ($row['var_cat'] == 'Exec-Set') { $var_cmd = 'exec-set'; } + if (strlen($row['var_hostname']) == 0) { + $xml .= "\n"; + } elseif ($row['var_hostname'] == $hostname) { + $xml .= "\n"; + } } $prev_var_cat = $row['var_cat']; }