mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
(legacy) fix crashreport PHP Warning: Illegal string offset 'rule' in /usr/local/www/firewall_nat.php on line 71
This commit is contained in:
parent
435e47e156
commit
129def906b
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user