Commit a0d8768a authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(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

(cherry picked from commit 64f3742f)
(cherry picked from commit 8f243538)
parent 32767ad5
...@@ -274,7 +274,7 @@ function easyrule_pass_rule_add($int, $proto, $srchost, $dsthost, $dstport, $ipp ...@@ -274,7 +274,7 @@ function easyrule_pass_rule_add($int, $proto, $srchost, $dsthost, $dstport, $ipp
global $config; global $config;
/* No rules, start a new array */ /* No rules, start a new array */
if (!is_array($config['filter']['rule'])) { if (!isset($config['filter']['rule'])) {
$config['filter']['rule'] = array(); $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