diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-20 16:15:29 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-20 16:15:29 +0000 |
commit | 0e218dc123279ede022c83e4900af56b912ab71b (patch) | |
tree | b5ca43408640f8903700b6931de2f3717a0f357c | |
parent | f837dc649cc583297b2cafe4f03c3a4361b01fb9 (diff) | |
download | pfsense-0e218dc123279ede022c83e4900af56b912ab71b.zip pfsense-0e218dc123279ede022c83e4900af56b912ab71b.tar.gz |
Do not take in consideration not enabled interfaces.
-rw-r--r-- | etc/inc/util.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index b10402a..c2e8e05 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -300,10 +300,11 @@ function get_configured_interface_with_descr($only_opt = false) { foreach($config['interfaces'] as $if => $ifdetail) { if ($only_opt == true && $if == "wan" || $if == "lan") continue; - if ($if == "wan" || $if == "lan" || isset($ifdetail['enable'])) + if ($if == "wan" || $if == "lan" || isset($ifdetail['enable'])) { if($ifdetail['descr'] == "") $ifdetail['descr'] = $if; $iflist[$if] = $ifdetail['descr']; + } } return $iflist; |