summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_dhcp_leases.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 05:06:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 05:06:41 +0000
commit612bb4f3db8fd261e918470880c457a744384bf5 (patch)
tree797ad379302fdb644b6fb12fe3c484609519b665 /usr/local/www/diag_dhcp_leases.php
parentaf98cced4420801095daf39003c29e33cc1d8474 (diff)
downloadpfsense-612bb4f3db8fd261e918470880c457a744384bf5.zip
pfsense-612bb4f3db8fd261e918470880c457a744384bf5.tar.gz
Do not show LAN related items when the interfafe does not exist.
Diffstat (limited to 'usr/local/www/diag_dhcp_leases.php')
-rwxr-xr-xusr/local/www/diag_dhcp_leases.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_dhcp_leases.php b/usr/local/www/diag_dhcp_leases.php
index a25f046..7af62dc 100755
--- a/usr/local/www/diag_dhcp_leases.php
+++ b/usr/local/www/diag_dhcp_leases.php
@@ -303,7 +303,7 @@ foreach ($leases as $data) {
break;
}
} else {
- foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) {
+ foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) {
if (($lip >= ip2long($dhcpifconf['range']['from'])) && ($lip <= ip2long($dhcpifconf['range']['to']))) {
$data['if'] = $dhcpif;
break;
OpenPOWER on IntegriCloud