dhcp: fix a crash report

This commit is contained in:
Franco Fichtner 2015-12-01 15:35:28 +01:00
parent 63d3192156
commit 14d3ba6ea2

View File

@ -273,8 +273,7 @@ if(count($pools) > 0) {
}
foreach($config['interfaces'] as $ifname => $ifarr) {
if (is_array($config['dhcpd'][$ifname]) &&
is_array($config['dhcpd'][$ifname]['staticmap'])) {
if (isset($config['dhcpd'][$ifname]['staticmap'])) {
foreach($config['dhcpd'][$ifname]['staticmap'] as $static) {
$slease = array();
$slease['ip'] = $static['ipaddr'];