Commit ae95cf92 authored by Ad Schellevis's avatar Ad Schellevis

whitespace firewall_nat_edit.php

parent 8f02b7ac
......@@ -64,7 +64,6 @@ function formInterfaces() {
* fetch list of selectable networks to use in form
*/
function formNetworks() {
$networks = array();
$networks["any"] = gettext("any");
$networks["pptp"] = gettext("PPTP clients");
......@@ -299,13 +298,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// Create a rule or if we want to create a new one
if( $natent['associated-rule-id']=='new' ) {
$need_filter_rule = true;
unset( $natent['associated-rule-id'] );
unset($natent['associated-rule-id']);
$pconfig['filter-rule-association']='add-associated';
}
// If creating a new rule, where we want to add the filter rule, associated or not
else if( isset($pconfig['filter-rule-association']) &&
($pconfig['filter-rule-association']=='add-associated' ||
$pconfig['filter-rule-association']=='add-unassociated') )
else if (isset($pconfig['filter-rule-association']) && ($pconfig['filter-rule-association']=='add-associated' ||
$pconfig['filter-rule-association']=='add-unassociated')
)
$need_filter_rule = true;
if ($need_filter_rule) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment