mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
interfaces: fix warning in PHP 8
'group' property not set when parsing, likely also happens for 'remote'.
This commit is contained in:
parent
7607a6d968
commit
8cb79d511b
1 changed files with 2 additions and 0 deletions
|
|
@ -412,7 +412,9 @@ function legacy_interfaces_details($intf = null)
|
|||
$result[$current_interface]["vxlan"]["local"] = $line_parts[4];
|
||||
if ($line_parts[5] == "group") {
|
||||
$result[$current_interface]["vxlan"]["group"] = $line_parts[6];
|
||||
$result[$current_interface]['vxlan']['remote'] = null;
|
||||
} else {
|
||||
$result[$current_interface]['vxlan']['group'] = null;
|
||||
$result[$current_interface]["vxlan"]["remote"] = $line_parts[6];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue