From 77d9edf585a48c21fc16d1029224385de7f842b7 Mon Sep 17 00:00:00 2001 From: NOYB Date: Fri, 8 Jan 2016 03:20:36 -0800 Subject: Remove unnecessary checks. Code prevents var from being empty. Wrap var in string with braces. --- src/usr/local/www/services_unbound.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/usr/local/www') 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; } } -- cgit v1.1