aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-10-28 23:33:16 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-10-28 23:33:16 -0200
commitb08d625e4e6ac8670cd1d4b3b7ff74b8271a7247 (patch)
treeddc70b6288379ee5364ade783bc732c5294859bc
parent8dc0377748bdfb45d9cdf180ead3f4f5c63e670c (diff)
downloadpfsense-packages-b08d625e4e6ac8670cd1d4b3b7ff74b8271a7247.tar.gz
pfsense-packages-b08d625e4e6ac8670cd1d4b3b7ff74b8271a7247.tar.bz2
pfsense-packages-b08d625e4e6ac8670cd1d4b3b7ff74b8271a7247.zip
pfBlocker - fix bug in get_countries
-rw-r--r--config/pf-blocker/pfblocker.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php
index e3caa585..4eb07634 100644
--- a/config/pf-blocker/pfblocker.php
+++ b/config/pf-blocker/pfblocker.php
@@ -50,10 +50,10 @@ foreach ($files as $cont => $file){
$total++;
}
${preg_replace("/\s/","",$matches[1])}=$matches[2];
- }
+ }
else{
- if (${$ISOCode}==0){
- ${$ISOCode}++;
+ if (${$ISOcount}==0){
+ ${$ISOCount}++;
$options.= '<option><name>'.$Country .'-'.$ISOCode.' ('.$TotalNetworks.') '.' </name><value>'.$ISOCode.'</value></option>'."\n";
}
${$ISOCode}.=$line."\n";