mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
dhcp: fix a crash report
This commit is contained in:
parent
219668b95a
commit
afc4a48e08
@ -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'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user