diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2011-10-26 12:11:09 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2011-10-26 12:11:09 -0200 |
commit | 8406cb7277dad465e76fb42d2be766c36bfb9bff (patch) | |
tree | 085777f71082d01ccf33142b07f7a819956928b1 /config/countryblock-dev/countryblock.inc | |
parent | 7af27000308ed883cf8d295ae463edf75dabbfaf (diff) | |
download | pfsense-packages-8406cb7277dad465e76fb42d2be766c36bfb9bff.tar.gz pfsense-packages-8406cb7277dad465e76fb42d2be766c36bfb9bff.tar.bz2 pfsense-packages-8406cb7277dad465e76fb42d2be766c36bfb9bff.zip |
countryblock-dev - add check to prevent sync error
Diffstat (limited to 'config/countryblock-dev/countryblock.inc')
-rwxr-xr-x | config/countryblock-dev/countryblock.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/countryblock-dev/countryblock.inc b/config/countryblock-dev/countryblock.inc index fcad12e5..8aaf6a41 100755 --- a/config/countryblock-dev/countryblock.inc +++ b/config/countryblock-dev/countryblock.inc @@ -65,7 +65,8 @@ function sync_package_countryblock() { #get all selected countries $countries=$config['installedpackages']['countryblock']['config'][0]['topspammers'].","; foreach ($continents as $continent){ - $countries.=$config['installedpackages']['countryblock'.strtolower(preg_replace('/ /','',$continent))]['config'][0]['countries'].","; + if (is_array($config['installedpackages']['countryblock'.strtolower(preg_replace('/ /','',$continent))]['config'])) + $countries.=$config['installedpackages']['countryblock'.strtolower(preg_replace('/ /','',$continent))]['config'][0]['countries'].","; } $cb_files = explode(",", $countries); $ips=""; |