if no search terms are sent, exit early
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 1 Jun 2009 20:37:28 +0000 (20:37 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 1 Jun 2009 20:37:28 +0000 (20:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@13283 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index f618c3e..de6043f 100644 (file)
@@ -767,6 +767,8 @@ sub staged_search {
 
     $method .= '.staff' if $self->api_name =~ /staff$/;
     $method .= '.atomic';
+                
+    return {count => 0} unless ($search_hash and $search_hash->{searches});
 
     my $search_duration;
     my $user_offset = $search_hash->{offset} || 0; # user-specified offset