diff options
author | Ermal <eri@pfsense.org> | 2010-05-18 18:04:04 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-18 18:04:04 +0000 |
commit | 7382c59deb0e04ce625c7e2820ee9bde3a3ae7c2 (patch) | |
tree | b99fb44c2d346eb4ee57734853f3089d0f024cae /etc/inc | |
parent | 01207fd8487803b40559c62cac65ffbebf5bfcab (diff) | |
download | pfsense-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.inc | 10 |
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 */ |