diff options
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 9 |
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 |