Dont unnecessarily unset

This commit is contained in:
Warren Baker 2014-03-29 14:47:31 +02:00
parent 188609c6dc
commit e91626775f

View File

@ -99,17 +99,9 @@ if ($_POST) {
$a_unboundcfg['txtsupport'] = ($_POST['txtsupport']) ? true : false;
if (is_array($_POST['active_interface']) && !empty($_POST['active_interface']))
$a_unboundcfg['active_interface'] = implode(",", $_POST['active_interface']);
else if (isset($config['unbound']['active_interface'])) {
unset($config['unbound']['active_interface']);
$pconfig['active_interface'] = array();
}
if (is_array($_POST['outgoing_interface']) && !empty($_POST['outgoing_interface']))
$a_unboundcfg['outgoing_interface'] = implode(",", $_POST['outgoing_interface']);
else if (isset($config['unbound']['outgoing_interface'])) {
unset($config['unbound']['outgoing_interface']);
$pconfig['outgoing_interface'] = array();
}
if (!$input_errors) {
write_config("DNS Resolver configured.");