diff options
author | BBcan177 <bbcan177@gmail.com> | 2015-02-23 01:27:47 -0500 |
---|---|---|
committer | BBcan177 <bbcan177@gmail.com> | 2015-02-23 01:27:47 -0500 |
commit | 043aab28a4e872069e5592fe407a01f77c8cb81e (patch) | |
tree | 65e9dcdacf1323ce051ccefbb7d3e22fc708df7f | |
parent | 5b2458ab4a43cf8e44567d1e0ed19c7bcece660b (diff) | |
download | pfsense-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.
-rw-r--r-- | config/pfblockerng/pfblockerng_alerts.php | 2 |
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; } } } |