diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-12 13:39:55 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-12 13:39:55 +0000 |
commit | a0d1dc5634f97f601b2137514250638a3d9e758c (patch) | |
tree | c2b02255ca6f085096267a1cbbe9693a0bfff597 /usr | |
parent | 0c87f8fab56b87122ec197aefdf969f7194a19ad (diff) | |
download | pfsense-a0d1dc5634f97f601b2137514250638a3d9e758c.zip pfsense-a0d1dc5634f97f601b2137514250638a3d9e758c.tar.gz |
Ticket #207. Show the dhcp server tab for the interface that have a previous dhcpd configuration.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 700a4f7..523d04e 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -474,7 +474,8 @@ include("head.inc"); $i = 0; foreach ($iflist as $ifent => $ifname) { $oc = $config['interfaces'][$ifent]; - if (!is_ipaddr($oc['ipaddr'])) + if ((is_array($config['dhcpd'][$ifent]) && !isset($config['dhcpd'][$ifent]['enable']) && (!is_ipaddr($oc['ipaddr']))) || + (!is_array($config['dhcpd'][$ifent]) && (!is_ipaddr($oc['ipaddr'])))) continue; if ($ifent == $if) $active = true; |