From 14d3ba6ea2d66323ad8b74153c98e0aa89ff45a9 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 1 Dec 2015 15:35:28 +0100 Subject: [PATCH] dhcp: fix a crash report --- src/www/status_dhcp_leases.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/www/status_dhcp_leases.php b/src/www/status_dhcp_leases.php index 2223cfdc7..d77704e65 100644 --- a/src/www/status_dhcp_leases.php +++ b/src/www/status_dhcp_leases.php @@ -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'];