Commit f7c69371 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) some additional uninit vars in firewall_nat_edit.php

parent 65cca54d
...@@ -579,11 +579,11 @@ include("head.inc"); ...@@ -579,11 +579,11 @@ include("head.inc");
if(have_ruleint_access($if)) if(have_ruleint_access($if))
$interfaces[$if] = $ifdesc; $interfaces[$if] = $ifdesc;
if ($config['l2tp']['mode'] == "server") if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server")
if(have_ruleint_access("l2tp")) if(have_ruleint_access("l2tp"))
$interfaces['l2tp'] = "L2TP VPN"; $interfaces['l2tp'] = "L2TP VPN";
if ($config['pptpd']['mode'] == "server") if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server")
if(have_ruleint_access("pptp")) if(have_ruleint_access("pptp"))
$interfaces['pptp'] = "PPTP VPN"; $interfaces['pptp'] = "PPTP VPN";
......
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