summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-03-11 02:47:24 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-03-11 02:47:59 +0100
commit09ae0c17617fa707b2c0e9c510327f83c4775985 (patch)
tree7e4f7ef63afa7385b5af6acec67ef61a934b6523 /etc/inc
parentc557e063138de70b4b8fb94a34221bc2de692cae (diff)
downloadpfsense-09ae0c17617fa707b2c0e9c510327f83c4775985.zip
pfsense-09ae0c17617fa707b2c0e9c510327f83c4775985.tar.gz
Make sure to sort the tiers array by tier priority key
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index d564e69..83f5edc 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -338,6 +338,8 @@ function return_gateway_groups_array() {
}
}
}
+ /* sort the tiers array by the tier key */
+ ksort($tiers);
/* we do not really foreach the tiers as we stop after the first tier */
foreach($tiers as $tiernr => $tier) {
/* process all gateways in this tier */
OpenPOWER on IntegriCloud