Skip to content

Commit

Permalink
(legacy config helpers) fix config section restore for opnsense config's
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed May 10, 2015
1 parent fd58c9d commit 4a7bf0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/etc/inc/pfsense-utils.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4a7bf0b

Please sign in to comment.