From d80a71d9f675ecdf069eae5ae13f99ea0fb204a8 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 20 Aug 2010 18:13:24 +0000 Subject: [PATCH] Actually make this not error out. --- usr/local/www/interfaces_ppps_edit.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index 102e731eca..960a13dcbe 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 section of config.xml if it exists