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