From a4c597209a3b50b76cd2c3468176b3fbdf7f27ba Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 7 Sep 2008 01:00:20 +0000 Subject: Check to see if a interface has a dhcp key before trying to unset if the interface has a dhcp server enabled. --- etc/rc.initial.setlanip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 668fe64..08de05e 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -165,7 +165,8 @@ /* TODO - this line is causing a "Fatal error: Cannot unset string offsets in /etc/rc.initial.setlanip" on below line number */ - unset($config['dhcpd'][$interface]['enable']); + if($config['dhcpd'][$interface]) + unset($config['dhcpd'][$interface]['enable']); } if ($config['system']['webgui']['protocol'] == "https") { -- cgit v1.1