summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-20 18:13:24 +0000
committerErmal <eri@pfsense.org>2010-08-20 18:13:24 +0000
commitd80a71d9f675ecdf069eae5ae13f99ea0fb204a8 (patch)
treedf6f31b4ff8fe89ab72141af5452b4d6afd6d2e4 /usr/local
parent2de2abe00cff380886b7cf0b482d6fba0263d539 (diff)
downloadpfsense-d80a71d9f675ecdf069eae5ae13f99ea0fb204a8.zip
pfsense-d80a71d9f675ecdf069eae5ae13f99ea0fb204a8.tar.gz
Actually make this not error out.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/interfaces_ppps_edit.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php
index 102e731..960a13d 100644
--- a/usr/local/www/interfaces_ppps_edit.php
+++ b/usr/local/www/interfaces_ppps_edit.php
@@ -338,9 +338,12 @@ if ($_POST) {
$ppp['vjcomp'] = $_POST['vjcomp'] ? true : false;
$ppp['tcpmssfix'] = $_POST['tcpmssfix'] ? true : false;
$ppp['bandwidth'] = implode(',', $port_data['bandwidth']);
- $ppp['mtu'] = implode(',', $port_data['mtu']);
- $ppp['mru'] = implode(',', $port_data['mru']);
- $ppp['mrru'] = implode(',', $port_data['mrru']);
+ if (is_array($port_data['mtu']))
+ $ppp['mtu'] = implode(',', $port_data['mtu']);
+ if (is_array($port_data['mru']))
+ $ppp['mru'] = implode(',', $port_data['mru']);
+ if (is_array($port_data['mrru']))
+ $ppp['mrru'] = implode(',', $port_data['mrru']);
/* handle_pppoe_reset is called here because if user changes Link Type from PPPoE to another type we
must be able to clear the config data in the <cron> section of config.xml if it exists
OpenPOWER on IntegriCloud