diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-19 18:11:38 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-19 18:11:38 +0000 |
commit | 51403202ba04067fb031744270358f6ae5830c48 (patch) | |
tree | 2bf2eddb2e88ae1301fea473bc89e030054a67ae /etc/inc | |
parent | 3a77a392d7b0400bfa64a8745ffdb90570cfb5b3 (diff) | |
download | pfsense-51403202ba04067fb031744270358f6ae5830c48.zip pfsense-51403202ba04067fb031744270358f6ae5830c48.tar.gz |
Fix typos and correctly test for the <enable/> setting on optional interfaces.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/util.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 0bcceea..e9adfc7 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -282,7 +282,7 @@ function get_configured_interface_list($only_opt = false) { foreach($config['interfaces'] as $if => $ifdetail) { if ($only_opt == true && $if == "wan" || $if == "lan") continue; - if ($if == "wan" || $if == "lan" || $ifdetail['enabled']) + if ($if == "wan" || $if == "lan" || isset($ifdetail['enable'])) $iflist[$if] = $if; } @@ -300,8 +300,8 @@ 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" || $ifdetail['enabled']) - $iflist[$if] = $ifidetail['descr']; + if ($if == "wan" || $if == "lan" || isset($ifdetail['enable'])) + $iflist[$if] = $ifdetail['descr']; } return $iflist; |