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

(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

(cherry picked from commit 129def90)
parent 9b24caa4
......@@ -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();
}
......
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