summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-19 18:11:38 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-19 18:11:38 +0000
commit51403202ba04067fb031744270358f6ae5830c48 (patch)
tree2bf2eddb2e88ae1301fea473bc89e030054a67ae /etc/inc/util.inc
parent3a77a392d7b0400bfa64a8745ffdb90570cfb5b3 (diff)
downloadpfsense-51403202ba04067fb031744270358f6ae5830c48.zip
pfsense-51403202ba04067fb031744270358f6ae5830c48.tar.gz
Fix typos and correctly test for the <enable/> setting on optional interfaces.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc6
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;
OpenPOWER on IntegriCloud