diff options
Diffstat (limited to 'usr/local/www/services_dhcp_relay.php')
-rwxr-xr-x | usr/local/www/services_dhcp_relay.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp_relay.php b/usr/local/www/services_dhcp_relay.php index e4126c7..1517be2 100755 --- a/usr/local/www/services_dhcp_relay.php +++ b/usr/local/www/services_dhcp_relay.php @@ -88,8 +88,10 @@ $ifcfg = $config['interfaces'][$if]; * the two are not compatible with each other. */ $dhcpd_enabled = false; -foreach($config['dhcpd'] as $dhcp) { - if(isset($dhcp['enable'])) $dhcpd_enabled = true; +if (is_array($config['dhcpd'])) { + foreach($config['dhcpd'] as $dhcp) + if(isset($dhcp['enable'])) + $dhcpd_enabled = true; } if ($_POST) { |