diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-20 16:22:07 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-20 16:22:07 +0000 |
commit | 2128f76f426f6954f435a7a019f6c2a364a88c23 (patch) | |
tree | 849025b80a5f2ac5e0724f2345cd1b5507135bd2 /etc/inc/util.inc | |
parent | 914693ef8947664096c471488a5ae5888bfcc655 (diff) | |
download | pfsense-2128f76f426f6954f435a7a019f6c2a364a88c23.zip pfsense-2128f76f426f6954f435a7a019f6c2a364a88c23.tar.gz |
Correctly return the array when only opt interfaces are requested.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index c2e8e05..d9da9d8 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -298,7 +298,7 @@ function get_configured_interface_with_descr($only_opt = false) { /* if list */ foreach($config['interfaces'] as $if => $ifdetail) { - if ($only_opt == true && $if == "wan" || $if == "lan") + if ($only_opt == true && ($if == "wan" || $if == "lan")) continue; if ($if == "wan" || $if == "lan" || isset($ifdetail['enable'])) { if($ifdetail['descr'] == "") |