diff --git a/src/opnsense/mvc/app/models/OPNsense/Firewall/Alias.php b/src/opnsense/mvc/app/models/OPNsense/Firewall/Alias.php index 282e558eb..efc88cc08 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Firewall/Alias.php +++ b/src/opnsense/mvc/app/models/OPNsense/Firewall/Alias.php @@ -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;