(legacy config helpers) fix config section restore for opnsense config's

This commit is contained in:
Ad Schellevis 2015-05-10 12:14:19 +00:00
parent fd58c9d0cd
commit 4a7bf0b7c6

View File

@ -418,6 +418,8 @@ function restore_config_section($section_name, $new_contents)
$xml = $xml['pfsense'];
} elseif ($xml['m0n0wall']) {
$xml = $xml['m0n0wall'];
} elseif ($xml['opnsense']) {
$xml = $xml['opnsense'];
}
if ($xml[$section_name]) {
$section_xml = $xml[$section_name];