Commit d73b764e authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to IsLayer1().

parent 0eb021df
......@@ -399,8 +399,10 @@ sub LinkType($)
sub IsLayer1($)
{
my $linktype = LinkType($_[0]);
return 1
if (LinkType($_[0]) eq "layer1");
if (defined($linktype) && $linktype eq "layer1");
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment