summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-18 18:04:04 +0000
committerErmal <eri@pfsense.org>2010-05-18 18:04:04 +0000
commit7382c59deb0e04ce625c7e2820ee9bde3a3ae7c2 (patch)
treeb99fb44c2d346eb4ee57734853f3089d0f024cae /etc/inc
parent01207fd8487803b40559c62cac65ffbebf5bfcab (diff)
downloadpfsense-7382c59deb0e04ce625c7e2820ee9bde3a3ae7c2.zip
pfsense-7382c59deb0e04ce625c7e2820ee9bde3a3ae7c2.tar.gz
Do not duplicate gateway entries when status file is not present. Mostly an innocuos programmer error.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/gwlb.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index b850a00..2411892 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -420,12 +420,10 @@ function return_gateway_groups_array() {
log_error($msg);
notify_via_growl($msg);
foreach($group['item'] as $item) {
- foreach($group['item'] as $item) {
- $itemsplit = explode("|", $item);
- $tier = $itemsplit[1];
- $gwname = $itemsplit[0];
- $tiers[$tier][] = $gwname;
- }
+ $itemsplit = explode("|", $item);
+ $tier = $itemsplit[1];
+ $gwname = $itemsplit[0];
+ $tiers[$tier][] = $gwname;
}
}
/* sort the tiers array by the tier key */
OpenPOWER on IntegriCloud