Check NetBIOS for results when searching nodes by MAC. Use has_rows to check for results rather than count.

This commit is contained in:
Eric A. Miller
2014-02-08 21:26:40 -05:00
parent 1739108717
commit 7a977f0ddd

View File

@@ -73,9 +73,10 @@ ajax '/ajax/content/search/node' => require_login sub {
}
);
return unless $sightings->count
or $ips->count
or $ports->count;
return unless $sightings->has_rows
or $ips->has_rows
or $ports->has_rows
or $netbios->has_rows;
template 'ajax/search/node_by_mac.tt', {
ips => $ips,