Commit afc4a48e authored by Franco Fichtner's avatar Franco Fichtner

dhcp: fix a crash report

parent 219668b9
...@@ -52,7 +52,7 @@ function dhcp_clean_leases() ...@@ -52,7 +52,7 @@ function dhcp_clean_leases()
/* Build list of static MACs */ /* Build list of static MACs */
$staticmacs = array(); $staticmacs = array();
foreach($config['interfaces'] as $ifname => $ifarr) { foreach($config['interfaces'] as $ifname => $ifarr) {
if (is_array($config['dhcpd'][$ifname]['staticmap'])) { if (isset($config['dhcpd'][$ifname]['staticmap'])) {
foreach($config['dhcpd'][$ifname]['staticmap'] as $static) { foreach($config['dhcpd'][$ifname]['staticmap'] as $static) {
$staticmacs[] = $static['mac']; $staticmacs[] = $static['mac'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment