summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-09-18 19:40:52 +0000
committerColin Smith <colin@pfsense.org>2005-09-18 19:40:52 +0000
commitbb3b9159f870508f876a36f7806b09c9291ddf8a (patch)
tree9aaad4620fff524bec1308dfa52927625a310b0a /etc
parent9a5c0396393bba98fc579b0181f02824eccb93e5 (diff)
downloadpfsense-bb3b9159f870508f876a36f7806b09c9291ddf8a.zip
pfsense-bb3b9159f870508f876a36f7806b09c9291ddf8a.tar.gz
Bugfix.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index e39744f..3a52af0 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -251,7 +251,8 @@ function get_interface_list($mode = "active", $keyby = "physical") {
$regexp = '/(' . implode('|', $intlist) . '):\s/';
$ifstatus = preg_grep('/status:/', $ifconfig);
foreach($ifstatus as $status) {
- if(stristr($status, "active")) $upints[] = array_shift($intlist);
+ $int = array_shift($intlist);
+ if(stristr($status, "active")) $upints[] = $int;
}
break;
}
OpenPOWER on IntegriCloud