aboutsummaryrefslogtreecommitdiffstats
path: root/config/pfblockerng/pfblockerng_alerts.php
diff options
context:
space:
mode:
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; ?>