summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-10-13 15:57:22 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-10-13 15:57:22 -0600
commitda6155e004d3aff23e51f2d27f40827e4ac7b833 (patch)
tree54dd85b0e7d0c2e5c0c67a52d20957001d6cae6b /etc
parent94823361c3216555761ff57463fe91b2a229a090 (diff)
downloadpfsense-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.inc2
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)
OpenPOWER on IntegriCloud