diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-12 13:21:34 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-12 13:21:34 +0000 |
commit | 0c87f8fab56b87122ec197aefdf969f7194a19ad (patch) | |
tree | 0a2b4e05172142151d0b3e4e6346a5ffe8d25911 /usr/local/www/services_dhcp.php | |
parent | 494be6e8507796cdc9eb8c188d26e45ff7d3edec (diff) | |
download | pfsense-0c87f8fab56b87122ec197aefdf969f7194a19ad.zip pfsense-0c87f8fab56b87122ec197aefdf969f7194a19ad.tar.gz |
Simplify some code.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 172593e..700a4f7 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -169,10 +169,8 @@ $dhcrelaycfg = $config['dhcrelay']; if(is_array($dhcrelaycfg)) { foreach ($dhcrelaycfg as $dhcrelayif => $dhcrelayifconf) { - if (isset($dhcrelayifconf['enable']) && - (($dhcrelayif == "lan") || - (isset($config['interfaces'][$dhcrelayif]['enable']) && - $config['interfaces'][$dhcrelayif]['if'] && (!link_interface_to_bridge($dhcrelayif))))) + if (isset($dhcrelayifconf['enable']) && isset($iflist[$dhcrelayif]) && + (!link_interface_to_bridge($dhcrelayif))) $dhcrelay_enabled = true; } } |