This makes it a little easier to handle cases where there was no match,
rather than having to check to see if we have a scalar or a reference
to a list.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16927
dcc99617-32d9-48b4-a31d-
7c20da2025e4
if ($self->api_name =~ /id_list/) {
my $id_list = authority::full_rec->db_Main->selectcol_arrayref( $sql, {}, @values, $t, scalar(@searches) );
- return $id_list if (scalar(@$id_list)> 0);
+ return $id_list;
} else {
my $count = authority::full_rec->db_Main->selectcol_arrayref( $sql, {}, @values, $t, scalar(@searches) )->[0];
return $count if ($count > 0);