diff --git a/lib/App/Netdisco/Web/Plugin/Device/Ports.pm b/lib/App/Netdisco/Web/Plugin/Device/Ports.pm index d4850b5b..e7382921 100644 --- a/lib/App/Netdisco/Web/Plugin/Device/Ports.pm +++ b/lib/App/Netdisco/Web/Plugin/Device/Ports.pm @@ -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;