diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-09 21:23:52 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-09 21:23:52 +0000 |
commit | b9ed163dc5aeab0acedc038f6ebc8bfcd7a7dcdf (patch) | |
tree | d2367ca6991dfa101d3fc313439cd96b5fbcbdc7 /usr/local/www/diag_dhcp_leases.php | |
parent | 89019922fa6033635187452f322a95e16866ae53 (diff) | |
download | pfsense-b9ed163dc5aeab0acedc038f6ebc8bfcd7a7dcdf.zip pfsense-b9ed163dc5aeab0acedc038f6ebc8bfcd7a7dcdf.tar.gz |
Array checks too.
Diffstat (limited to 'usr/local/www/diag_dhcp_leases.php')
-rwxr-xr-x | usr/local/www/diag_dhcp_leases.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/diag_dhcp_leases.php b/usr/local/www/diag_dhcp_leases.php index a6bbd45..5f13a2b 100755 --- a/usr/local/www/diag_dhcp_leases.php +++ b/usr/local/www/diag_dhcp_leases.php @@ -214,7 +214,8 @@ if(count($pools) > 0) { } foreach($config['interfaces'] as $ifname => $ifarr) { - if (is_array($config['dhcpd'][$ifname]['staticmap'])) { + if (is_array($config['dhcpd'][$ifname]) && + is_array($config['dhcpd'][$ifname]['staticmap'])) { foreach($config['dhcpd'][$ifname]['staticmap'] as $static) { $slease = array(); $slease['ip'] = $static['ipaddr']; |