From a0d1dc5634f97f601b2137514250638a3d9e758c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 12 Jan 2010 13:39:55 +0000 Subject: Ticket #207. Show the dhcp server tab for the interface that have a previous dhcpd configuration. --- usr/local/www/services_dhcp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.1