diff options
author | Ermal <eri@pfsense.org> | 2011-09-12 23:02:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-09-12 23:02:56 +0000 |
commit | f5f89d214de3249316a6375ef1880ca659d6b762 (patch) | |
tree | 13b914c56ff4fae9562747768f254eb597339764 | |
parent | bf81eb22db36646ebf762600a3b4959c8c5214b0 (diff) | |
download | pfsense-f5f89d214de3249316a6375ef1880ca659d6b762.zip pfsense-f5f89d214de3249316a6375ef1880ca659d6b762.tar.gz |
Unset directly rather than defering
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index 2bce4b3..e85011b 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -425,14 +425,14 @@ foreach ($config['ppps']['ppp'] as $pppid => $ppp) { if ($realif == $ppp['if']) { $ifaces = explode(",", $ppp['ports']); - $wanif = $ifaces[0]; $ppid = $pppid; + $wanif = $ifaces[0]; + unset($config['ppps']['ppp'][$pppid]); + break; } } } - if (!empty($wanif)) { + if (!empty($wanif)) $config['interfaces']['wan']['if'] = $wanif; - unset($config['ppps']['ppp'][$ppid]); - } if ($type == "pppoe" || $type == "pptp") { if ($type == "pptp") { |