diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-04 16:37:56 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-04 16:37:56 +0000 |
commit | 7f9a13001a43946fcf740b1ae181062f5a361817 (patch) | |
tree | 551aea361bea60b8e43762d56ddb9449a33196d1 /usr/local/www | |
parent | 26586f7a09ee0000dd21acfbaa57829f0e103e36 (diff) | |
download | pfsense-7f9a13001a43946fcf740b1ae181062f5a361817.zip pfsense-7f9a13001a43946fcf740b1ae181062f5a361817.tar.gz |
Remove specific ppp fields if the interface is not a ppp anymore this unbreaks the GUI in certain cases.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 6dc2ff3..511f41b 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -205,6 +205,9 @@ if ($_POST['apply']) { if (preg_match('/^ppp_(.+)$/', $ifport, $matches)) { $config['interfaces'][$ifname]['pointtopoint'] = true; $config['interfaces'][$ifname]['serialport'] = $matches[1]; + } else { + unset($config['interfaces'][$ifname]['pointtopoint']); + unset($config['interfaces'][$ifname]['serialport']); } /* check for wireless interfaces, set or clear ['wireless'] */ |