From b04ffffc063ab05ba4fb08fceae560a30a9463d9 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 21 Dec 2019 21:53:50 +0000 Subject: [PATCH] fix #679 unint error --- lib/App/Netdisco/Web/Plugin/Device/Ports.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;