diff options
author | Ermal <eri@pfsense.org> | 2011-09-12 22:35:47 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-09-12 22:35:47 +0000 |
commit | 106646b4204b2850ec7f41547079cf00cc374f6f (patch) | |
tree | fcbffa56d8fcec0efbfd01f6e706f18bbecd6306 | |
parent | afe88d69235f84530ed6386b22cfc9c488bf94c5 (diff) | |
download | pfsense-106646b4204b2850ec7f41547079cf00cc374f6f.zip pfsense-106646b4204b2850ec7f41547079cf00cc374f6f.tar.gz |
Be correct on teh variable scope
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index 5cb794b..2bce4b3 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -420,18 +420,18 @@ } $type = $_POST['selectedtype']; - $wanif = ""; + $wanif = ""; $ppid = ""; if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) { foreach ($config['ppps']['ppp'] as $pppid => $ppp) { if ($realif == $ppp['if']) { $ifaces = explode(",", $ppp['ports']); - $wanif = $ifaces[0]; + $wanif = $ifaces[0]; $ppid = $pppid; } } } if (!empty($wanif)) { $config['interfaces']['wan']['if'] = $wanif; - unset($config['ppps']['ppp'][$pppid]); + unset($config['ppps']['ppp'][$ppid]); } if ($type == "pppoe" || $type == "pptp") { |