aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard
diff options
context:
space:
mode:
authorSergey Dvoriancev <dv_serg@mail.ru>2015-04-13 00:30:45 +0300
committerSergey Dvoriancev <dv_serg@mail.ru>2015-04-13 00:30:45 +0300
commitb0593ec5d01b1b1d29d7e62a8df5e39687484bfa (patch)
tree363050059afe969ef97a1b193fdd27eac504fa08 /config/squidGuard
parenta9c38e6a1977a1a5359f5bd9d244912830ab2541 (diff)
downloadpfsense-packages-b0593ec5d01b1b1d29d7e62a8df5e39687484bfa.tar.gz
pfsense-packages-b0593ec5d01b1b1d29d7e62a8df5e39687484bfa.tar.bz2
pfsense-packages-b0593ec5d01b1b1d29d7e62a8df5e39687484bfa.zip
Squidguard fix ACL order problem
Diffstat (limited to 'config/squidGuard')
-rw-r--r--config/squidGuard/squidguard.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc
index 0fd450b7..c4c47bcc 100644
--- a/config/squidGuard/squidguard.inc
+++ b/config/squidGuard/squidguard.inc
@@ -502,12 +502,13 @@ function squidguard_before_form_acl(&$pkg, $is_acl=true) {
}
}
# order
- if (is_array($source_items) && $field['fieldname'] == 'order') {
+ if ($field['fieldname'] == 'order') {
$fld = &$pkg['fields']['field'][$i];
- foreach($source_items as $nmkey => $nm)
- $fld['options']['option'][] = array('name'=>$nm, 'value'=>$nmkey);
- $fld['options']['option'][] = array('name'=>'--- Last ---', 'value'=>'9999');
- $fld['options']['option'][] = array('name'=>'-----', 'value'=>''); # ! this is must be last !
+ if (is_array($source_items))
+ foreach($source_items as $nmkey => $nm)
+ $fld['options']['option'][] = array('name'=>$nm, 'value'=>$nmkey);
+ $fld['options']['option'][] = array('name'=>'--- Last ---', 'value'=>'9999');
+ $fld['options']['option'][] = array('name'=>'-----', 'value'=>''); # ! this is must be last !
}
$i++;
}