(crashreport) PHP Warning: Illegal string offset 'rule' in /usr/local/www/diag_logs_filter.php on line 277

This commit is contained in:
Ad Schellevis 2016-09-05 21:17:01 +02:00
parent 2f741d7ad4
commit 64f3742fb3

View File

@ -274,7 +274,7 @@ function easyrule_pass_rule_add($int, $proto, $srchost, $dsthost, $dstport, $ipp
global $config;
/* No rules, start a new array */
if (!is_array($config['filter']['rule'])) {
if (empty($config['filter']['rule'])) {
$config['filter']['rule'] = array();
}