Check NetBIOS for results when searching nodes by MAC. Use has_rows to check for results rather than count.
This commit is contained in:
@@ -73,9 +73,10 @@ ajax '/ajax/content/search/node' => require_login sub {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return unless $sightings->count
|
return unless $sightings->has_rows
|
||||||
or $ips->count
|
or $ips->has_rows
|
||||||
or $ports->count;
|
or $ports->has_rows
|
||||||
|
or $netbios->has_rows;
|
||||||
|
|
||||||
template 'ajax/search/node_by_mac.tt', {
|
template 'ajax/search/node_by_mac.tt', {
|
||||||
ips => $ips,
|
ips => $ips,
|
||||||
|
|||||||
Reference in New Issue
Block a user