release 2.046004
This commit is contained in:
@@ -418,7 +418,7 @@ Returns the C<mac> column instantiated into a L<NetAddr::MAC> object.
|
||||
|
||||
=cut
|
||||
|
||||
sub net_mac { return NetAddr::MAC->new(mac => (shift)->mac) }
|
||||
sub net_mac { return NetAddr::MAC->new(mac => ((shift)->mac) || '') }
|
||||
|
||||
=head2 last_comment
|
||||
|
||||
|
||||
@@ -193,6 +193,6 @@ Returns the C<mac> column instantiated into a L<NetAddr::MAC> object.
|
||||
|
||||
=cut
|
||||
|
||||
sub net_mac { return NetAddr::MAC->new(mac => (shift)->mac) }
|
||||
sub net_mac { return NetAddr::MAC->new(mac => ((shift)->mac) || '') }
|
||||
|
||||
1;
|
||||
|
||||
@@ -221,6 +221,6 @@ Returns the C<mac> column instantiated into a L<NetAddr::MAC> object.
|
||||
|
||||
=cut
|
||||
|
||||
sub net_mac { return NetAddr::MAC->new(mac => (shift)->mac) }
|
||||
sub net_mac { return NetAddr::MAC->new(mac => ((shift)->mac) || '') }
|
||||
|
||||
1;
|
||||
|
||||
@@ -178,6 +178,6 @@ Returns the C<mac> column instantiated into a L<NetAddr::MAC> object.
|
||||
|
||||
=cut
|
||||
|
||||
sub net_mac { return NetAddr::MAC->new(mac => (shift)->mac) }
|
||||
sub net_mac { return NetAddr::MAC->new(mac => ((shift)->mac) || '') }
|
||||
|
||||
1;
|
||||
|
||||
@@ -87,6 +87,6 @@ Returns the C<mac> column instantiated into a L<NetAddr::MAC> object.
|
||||
|
||||
=cut
|
||||
|
||||
sub net_mac { return NetAddr::MAC->new(mac => (shift)->mac) }
|
||||
sub net_mac { return NetAddr::MAC->new(mac => ((shift)->mac) || '') }
|
||||
|
||||
1;
|
||||
|
||||
@@ -288,7 +288,7 @@ sub search_by_field {
|
||||
}
|
||||
|
||||
# get IEEE MAC format
|
||||
my $mac = NetAddr::MAC->new(mac => $p->{mac});
|
||||
my $mac = NetAddr::MAC->new(mac => ($p->{mac} || ''));
|
||||
undef $mac if
|
||||
($mac and $mac->as_ieee
|
||||
and (($mac->as_ieee eq '00:00:00:00:00:00')
|
||||
@@ -401,7 +401,7 @@ sub search_fuzzy {
|
||||
}
|
||||
|
||||
# get IEEE MAC format
|
||||
my $mac = NetAddr::MAC->new(mac => $q);
|
||||
my $mac = NetAddr::MAC->new(mac => ($q || ''));
|
||||
undef $mac if
|
||||
($mac and $mac->as_ieee
|
||||
and (($mac->as_ieee eq '00:00:00:00:00:00')
|
||||
|
||||
Reference in New Issue
Block a user