Commit 129def90 authored by Ad Schellevis's avatar Ad Schellevis

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

(legacy) fix crashreport PHP Warning:  Illegal string offset 'rule' in /usr/local/www/firewall_nat.php on line 71
parent 435e47e1
...@@ -68,7 +68,7 @@ function delete_id($id, &$array){ ...@@ -68,7 +68,7 @@ function delete_id($id, &$array){
} }
} }
if (!is_array($config['nat']['rule'])) { if (!isset($config['nat']['rule']) || !is_array($config['nat']['rule'])) {
$config['nat']['rule'] = array(); $config['nat']['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