fix #679 unint error

This commit is contained in:
Oliver Gorwits
2019-12-21 21:53:50 +00:00
parent 9ab1b24a77
commit b04ffffc06

View File

@@ -192,7 +192,7 @@ get '/ajax/content/device/ports' => require_login sub {
}
else {
@results = grep {
($_->vlan eq $f)
(defined $_->vlan and $_->vlan eq $f)
or
(scalar grep {defined and $_ eq $f} @{ $vlans->{$_->port}->{vlan_set} })
} @results;