diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-12-09 16:56:05 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-12-09 16:56:05 -0800 |
| commit | 3c32a627231b397f95f3e464ddf93e9f58aa9ab0 (patch) | |
| tree | dfb1e1dc17dc7a47b53c493c92dcf0f11b678f06 /httemplate/view/elements/svc_Common.html | |
| parent | 60038d862886d0eb3e9ac7fda516786d3a1c3388 (diff) | |
deal when Net::MAC::Vendor-lookup doesn't return an arrayref, RT#39384
Diffstat (limited to 'httemplate/view/elements/svc_Common.html')
| -rw-r--r-- | httemplate/view/elements/svc_Common.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index d7a1dcf30..296c27bbc 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -283,8 +283,8 @@ my $format_field = sub { } elsif ( $type eq 'checkbox' ) { $value = $value eq 'Y' ? emt('Yes') : emt('No'); } elsif ( $type =~ /(input-)?mac_addr/ and $value =~ /\w/) { - my $vendor = Net::MAC::Vendor::lookup($value)->[0]; - $value .= " ($vendor)" if $vendor; + my $vendor = Net::MAC::Vendor::lookup($value); + $value .= ' ('. $vendor->[0]. ')' if $vendor; $value = $m->scomp('/elements/mac_addr.html', $value); } |
