diff --git a/resources/switch.php b/resources/switch.php index c0d30965b5..d4657b534d 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -407,7 +407,7 @@ function save_var_xml() { $xml = ''; foreach ($variables as &$row) { if ($row['var_cat'] != 'Provision') { - if ($prev_var_cat != $row['var_cat']) { + if ($prev_var_category != $row['var_category']) { $xml .= "\n\n"; if (strlen($row["var_description"]) > 0) { $xml .= "\n";