diff options
-rwxr-xr-x | usr/local/www/bandwidth_by_ip.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/bandwidth_by_ip.php b/usr/local/www/bandwidth_by_ip.php index f14af21..9079f8f 100755 --- a/usr/local/www/bandwidth_by_ip.php +++ b/usr/local/www/bandwidth_by_ip.php @@ -40,7 +40,7 @@ $hostipformat = $_GET['hostipformat']; $iplookup = array(); // If hostname display is requested and the DNS forwarder does not already have DHCP static names registered, // then load the DHCP static mappings into an array keyed by IP address. -if (($hostipformat == "hostname") && (!isset($config['dnsmasq']['regdhcpstatic']))) { +if (($hostipformat != "") && (!isset($config['dnsmasq']['regdhcpstatic']))) { if (is_array($config['dhcpd'])) { foreach ($config['dhcpd'] as $ifdata) { if (is_array($ifdata['staticmap'])) { |