summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-04 16:37:56 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-04 16:37:56 +0000
commit7f9a13001a43946fcf740b1ae181062f5a361817 (patch)
tree551aea361bea60b8e43762d56ddb9449a33196d1 /usr
parent26586f7a09ee0000dd21acfbaa57829f0e103e36 (diff)
downloadpfsense-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')
-rwxr-xr-xusr/local/www/interfaces_assign.php3
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'] */
OpenPOWER on IntegriCloud