aboutsummaryrefslogtreecommitdiffstats
path: root/config/pfblockerng/pfblockerng_alerts.php
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2014-12-10 13:32:18 -0500
committerBBcan177 <bbcan177@gmail.com>2014-12-10 13:32:18 -0500
commitb656811caaae572c5f59547ab3e530cb042271ef (patch)
treeeb1ecc97f634ed0f395ce224a4df460fe06130ee /config/pfblockerng/pfblockerng_alerts.php
parentf31c0071522fb74546c06367ade8eaeb1abc19f2 (diff)
downloadpfsense-packages-b656811caaae572c5f59547ab3e530cb042271ef.tar.gz
pfsense-packages-b656811caaae572c5f59547ab3e530cb042271ef.tar.bz2
pfsense-packages-b656811caaae572c5f59547ab3e530cb042271ef.zip
Mods to inc, Alerts and Log Files
- Mod the 'Global Enable Log' if() statement in the .inc file - Use correct Folder Paths in Log Browser - Check if syslog array exists in Alerts Tab.
Diffstat (limited to 'config/pfblockerng/pfblockerng_alerts.php')
-rw-r--r--config/pfblockerng/pfblockerng_alerts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/pfblockerng/pfblockerng_alerts.php b/config/pfblockerng/pfblockerng_alerts.php
index b14e9210..bf409572 100644
--- a/config/pfblockerng/pfblockerng_alerts.php
+++ b/config/pfblockerng/pfblockerng_alerts.php
@@ -392,12 +392,12 @@ if ($savemsg) {
<!--Print Table Info-->
<td colspan="2" class="listtopic"><?php printf(gettext("&nbsp;{$type}&nbsp;&nbsp; - &nbsp; Last %s Alert Entries."), "{$pfbentries}"); ?>
<?php if ($pfb['pfsenseversion'] >= '2.2'): ?>
- <?php if (!array_key_exists("reverse", $config['syslog'])): ?>
+ <?php if (!is_array($config['syslog']) || !array_key_exists("reverse", $config['syslog'])): ?>
&nbsp;&nbsp;<?php echo gettext("Firewall Logs must be in Reverse Order."); ?>
<?php endif; ?>
<?php else: ?>
&nbsp;&nbsp;<?php echo gettext("Firewall Rule changes can unsync these Alerts."); ?>
- <?php if (!array_key_exists("reverse", $config['syslog'])): ?>
+ <?php if (!is_array($config['syslog']) || !array_key_exists("reverse", $config['syslog'])): ?>
&nbsp;&nbsp;<?php echo gettext("Firewall Logs must be in Reverse Order."); ?>
<?php endif; ?>
<?php endif; ?>