aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock-dev
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-10-26 12:11:09 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-10-26 12:11:09 -0200
commit8406cb7277dad465e76fb42d2be766c36bfb9bff (patch)
tree085777f71082d01ccf33142b07f7a819956928b1 /config/countryblock-dev
parent7af27000308ed883cf8d295ae463edf75dabbfaf (diff)
downloadpfsense-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')
-rwxr-xr-xconfig/countryblock-dev/countryblock.inc3
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="";