Commit 64f3742f authored by Ad Schellevis's avatar Ad Schellevis

(crashreport) PHP Warning: Illegal string offset 'rule' in...

(crashreport) PHP Warning:  Illegal string offset 'rule' in /usr/local/www/diag_logs_filter.php on line 277
parent 2f741d7a
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment