diff options
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index aef0c03..5606d9a 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -199,7 +199,8 @@ if ($_GET['act'] == "del") { if($id == "lan") { unset($config['interfaces']['lan']); - unset($config['dhcpd']['lan']); + if (is_array($config['dhcpd'])) + unset($config['dhcpd']['lan']); unset($config['shaper']); unset($config['ezshaper']); unset($config['nat']); |