From 8b7ae9a3712e146d55a7c6bc9f9bec2d3bac718c Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 2 Jul 2010 10:08:06 -0400 Subject: Only unset if this is actually set. Ticket #710 --- usr/local/www/interfaces.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 4d6283b..94fd82f 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -492,7 +492,8 @@ if ($_POST) { unset($wancfg['provider']); unset($wancfg['ondemand']); unset($wancfg['timeout']); - unset($wancfg['pppoe']['pppoe-reset-type']); + if (isset($wancfg['pppoe']['pppoe-reset-type'])) + unset($wancfg['pppoe']['pppoe-reset-type']); unset($wancfg['local']); unset($wancfg['subnet']); unset($wancfg['remote']); -- cgit v1.1