Commit ea9e2aa8 authored by Franco Fichtner's avatar Franco Fichtner

dhcp: fix a crash report

(cherry picked from commit afc4a48e)
parent 5042763b
......@@ -52,7 +52,7 @@ function dhcp_clean_leases()
/* Build list of static MACs */
$staticmacs = array();
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) {
$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