summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-07-16 15:06:12 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-07-16 15:06:12 +0000
commit5846d858a860df1b0f85ce86b5cee80f95a718f8 (patch)
tree35acf22a8926bd5f9743e22342938cbc340fb992 /etc/inc/filter.inc
parente1f675e48516c801282b6472e75530a1675c55b6 (diff)
downloadpfsense-5846d858a860df1b0f85ce86b5cee80f95a718f8.zip
pfsense-5846d858a860df1b0f85ce86b5cee80f95a718f8.tar.gz
If somehow all members are marked, proceed with the configured XML settings
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 3a88bfc..758f088 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -5,7 +5,7 @@
Copyright (C) 2004-2006 Scott Ullrich
Copyright (C) 2005 Bill Marquette
Copyright (C) 2006 Peter Allgeyer
- Copyright (C) 2008 Ermal Lu\xe7i
+ Copyright (C) 2008 Ermal Luci
All rights reserved.
originally part of m0n0wall (http://m0n0.ch/wall)
@@ -1503,6 +1503,17 @@ function generate_user_filter_rule($rule)
}
$tiers_count = count($tiers);
+ if($tiers_count == 0) {
+ /* Oh dear, we have no members! Engage Plan B */
+ foreach($group['item'] as $item) {
+ foreach($group['item'] as $item) {
+ $itemsplit = explode("|", $item);
+ $tier = $itemsplit[1];
+ $gwname = $itemsplit[0];
+ $tiers[$tier][] = $gwname;
+ }
+ }
+ }
/* we do not really foreach the tiers as we stop after the first tier */
foreach($tiers as $tier) {
OpenPOWER on IntegriCloud