Commit c2e0d912 authored by Franco Fichtner's avatar Franco Fichtner

dhcp: fix a crash report

parent 45707768
......@@ -446,7 +446,7 @@ endif;?>
foreach ($leases as $data):
if ($data['act'] == "static") {
foreach ($config['dhcpdv6'] as $dhcpif => $dhcpifconf) {
if (is_array($dhcpifconf['staticmap'])) {
if (isset($dhcpifconf['staticmap'])) {
foreach ($dhcpifconf['staticmap'] as $staticent) {
if ($data['ip'] == $staticent['ipaddr']) {
$data['int'] = htmlspecialchars($interfaces[$dhcpif]['descr']);
......
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