mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Firewall/alias, when traversing config, make sure the item exists, for https://github.com/opnsense/core/issues/3037
This commit is contained in:
parent
5568b35958
commit
54af1c434d
@ -80,7 +80,9 @@ class Alias extends BaseModel
|
||||
foreach ($this->getAliasSource() as $aliasref) {
|
||||
$cfgsection = $cfgObj;
|
||||
foreach ($aliasref[0] as $cfgName) {
|
||||
$cfgsection = $cfgsection->$cfgName;
|
||||
if ($cfgsection != null) {
|
||||
$cfgsection = $cfgsection->$cfgName;
|
||||
}
|
||||
}
|
||||
if ($cfgsection != null) {
|
||||
$nodeidx = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user