diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-01-08 03:20:36 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-01-25 17:03:36 -0800 |
commit | 77d9edf585a48c21fc16d1029224385de7f842b7 (patch) | |
tree | d7c55d298cb7aee98e881311b97c46bb67ef961c /src/usr/local/www | |
parent | 9a83872f226c20635feb2662d4d45df6f93de6a0 (diff) | |
download | pfsense-77d9edf585a48c21fc16d1029224385de7f842b7.zip pfsense-77d9edf585a48c21fc16d1029224385de7f842b7.tar.gz |
Remove unnecessary checks. Code prevents var from being empty.
Wrap var in string with braces.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/services_unbound.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php index 53f9299..b129197 100644 --- a/src/usr/local/www/services_unbound.php +++ b/src/usr/local/www/services_unbound.php @@ -151,10 +151,6 @@ if ($_POST) { $input_errors[] = gettext("One or more Outgoing Network Interfaces must be selected."); } - if (empty($pconfig['system_domain_local_zone_type'])) { - $input_errors[] = gettext("A System Domain Local-Zone Type must be selected."); - } - if ($pconfig['port'] && !is_port($pconfig['port'])) { $input_errors[] = gettext("You must specify a valid port number."); } @@ -172,10 +168,6 @@ if ($_POST) { $pconfig['outgoing_interface'] = implode(",", $pconfig['outgoing_interface']); } - if (isset($pconfig['system_domain_local_zone_type']) && !empty($pconfig['system_domain_local_zone_type'])) { - $display_system_domain_local_zone_type = $pconfig['system_domain_local_zone_type']; - } - $test_output = array(); if (test_unbound_config($pconfig, $test_output)) { $input_errors[] = gettext("The generated config file cannot be parsed by unbound. Please correct the following errors:"); @@ -200,7 +192,6 @@ if ($_POST) { $pconfig['active_interface'] = $display_active_interface; $pconfig['outgoing_interface'] = $display_outgoing_interface; - $pconfig['system_domain_local_zone_type'] = $display_system_domain_local_zone_type; $pconfig['custom_options'] = $display_custom_options; } } |