diff options
author | D. V. Serg <dvserg@pfsense.org> | 2008-05-04 08:24:00 +0000 |
---|---|---|
committer | D. V. Serg <dvserg@pfsense.org> | 2008-05-04 08:24:00 +0000 |
commit | fa3efc425271c71e63e8dc120aeab2c3d02ec8a9 (patch) | |
tree | a4e31f056c34df7431bceabef6cd5c3a29995501 /packages/squidGuard/squidguard_configurator.inc | |
parent | aaf3faf92a5038a5747d7a8b7af3c0fc7fdebac5 (diff) | |
download | pfsense-packages-fa3efc425271c71e63e8dc120aeab2c3d02ec8a9.tar.gz pfsense-packages-fa3efc425271c71e63e8dc120aeab2c3d02ec8a9.tar.bz2 pfsense-packages-fa3efc425271c71e63e8dc120aeab2c3d02ec8a9.zip |
update bugfix
Diffstat (limited to 'packages/squidGuard/squidguard_configurator.inc')
-rw-r--r-- | packages/squidGuard/squidguard_configurator.inc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/packages/squidGuard/squidguard_configurator.inc b/packages/squidGuard/squidguard_configurator.inc index a3adffc2..df293258 100644 --- a/packages/squidGuard/squidguard_configurator.inc +++ b/packages/squidGuard/squidguard_configurator.inc @@ -1024,18 +1024,20 @@ function sg_build_config() { $varray = explode(" ", $acl[FLD_OVERDESTINATIONNAME]); // delete blacklist entries from 'pass' if blacklist disabled - foreach($entry_blacklist as $entry) { - $tk = array_search($entry, $tarray); - if ($tk !== false) unset ($tarray[$tk]); + if (is_array($entry_blacklist) and !empty($entry_blacklist)) { + foreach($entry_blacklist as $entry) { + $tk = array_search($entry, $tarray); + if ($tk !== false) unset ($tarray[$tk]); - $tk = array_search("!$entry", $tarray); - if ($tk !== false) unset($tarray[$tk]); + $tk = array_search("!$entry", $tarray); + if ($tk !== false) unset($tarray[$tk]); - $tk = array_search($entry, $varray); - if ($tk !== false) unset ($varray[$tk]); + $tk = array_search($entry, $varray); + if ($tk !== false) unset ($varray[$tk]); - $tk = array_search("!$entry", $varray); - if ($tk !== false) unset ($varray[$tk]); + $tk = array_search("!$entry", $varray); + if ($tk !== false) unset ($varray[$tk]); + } } $acl[FLD_DESTINATIONNAME] = implode (" ", $tarray); |