summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_assign.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-xusr/local/www/interfaces_assign.php3
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']);
OpenPOWER on IntegriCloud