aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2015-02-23 01:27:47 -0500
committerBBcan177 <bbcan177@gmail.com>2015-02-23 01:27:47 -0500
commit043aab28a4e872069e5592fe407a01f77c8cb81e (patch)
tree65e9dcdacf1323ce051ccefbb7d3e22fc708df7f /config
parent5b2458ab4a43cf8e44567d1e0ed19c7bcece660b (diff)
downloadpfsense-packages-043aab28a4e872069e5592fe407a01f77c8cb81e.tar.gz
pfsense-packages-043aab28a4e872069e5592fe407a01f77c8cb81e.tar.bz2
pfsense-packages-043aab28a4e872069e5592fe407a01f77c8cb81e.zip
pfBlockerNG - Mods to Alerts Tab JS Variable
- Define $mycounter variable to avoid a potential JS error when its empty.
Diffstat (limited to 'config')
-rw-r--r--config/pfblockerng/pfblockerng_alerts.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/pfblockerng/pfblockerng_alerts.php b/config/pfblockerng/pfblockerng_alerts.php
index d14ad3a7..dd968bfc 100644
--- a/config/pfblockerng/pfblockerng_alerts.php
+++ b/config/pfblockerng/pfblockerng_alerts.php
@@ -934,6 +934,8 @@ if (!empty($fields_array[$type]) && !empty($rule_list)) {
$counter++;
if ($counter > 0 && $rtype == "block") {
$mycounter = $counter;
+ } else {
+ $mycounter = 0;
}
}
}