diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-10-13 15:57:22 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-10-13 15:57:22 -0600 |
commit | da6155e004d3aff23e51f2d27f40827e4ac7b833 (patch) | |
tree | 54dd85b0e7d0c2e5c0c67a52d20957001d6cae6b /etc | |
parent | 94823361c3216555761ff57463fe91b2a229a090 (diff) | |
download | pfsense-da6155e004d3aff23e51f2d27f40827e4ac7b833.zip pfsense-da6155e004d3aff23e51f2d27f40827e4ac7b833.tar.gz |
Make sure this is an array before entering the foreach loop. Reported at http://forum.pfsense.org/index.php/topic,29118.0.html
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index f5418ba..8f375f5 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -241,7 +241,7 @@ function system_hosts_generate() { else $hosts .= "{$host['ip']} {$host['domain']}\n"; } - if (isset($dnsmasqcfg['regdhcpstatic'])) { + if (isset($dnsmasqcfg['regdhcpstatic']) && is_array($config['dhcpd'])) { foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) if(is_array($dhcpifconf['staticmap']) && isset($dhcpifconf['enable'])) foreach ($dhcpifconf['staticmap'] as $host) |