diff options
author | jim-p <jimp@pfsense.org> | 2011-09-12 19:20:57 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-09-12 19:20:57 -0400 |
commit | c99c6390359596993efd235c7a00325555c1efb0 (patch) | |
tree | 2359d4bc3ba507419b4369de3d18424d8738c899 /usr/local/www | |
parent | f5f89d214de3249316a6375ef1880ca659d6b762 (diff) | |
download | pfsense-c99c6390359596993efd235c7a00325555c1efb0.zip pfsense-c99c6390359596993efd235c7a00325555c1efb0.tar.gz |
Revert "Unset directly rather than defering"
This reverts commit f5f89d214de3249316a6375ef1880ca659d6b762.
Diffstat (limited to 'usr/local/www')
-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 e85011b..2bce4b3 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]; - unset($config['ppps']['ppp'][$pppid]); - break; + $wanif = $ifaces[0]; $ppid = $pppid; } } } - if (!empty($wanif)) + if (!empty($wanif)) { $config['interfaces']['wan']['if'] = $wanif; + unset($config['ppps']['ppp'][$ppid]); + } if ($type == "pppoe" || $type == "pptp") { if ($type == "pptp") { |