make the input test a little more strict (require the presence of a search term)
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 1 Jun 2009 20:44:58 +0000 (20:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 1 Jun 2009 20:44:58 +0000 (20:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13284 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5506baf..504104b 100644 (file)
@@ -853,7 +853,10 @@ sub staged_search {
     $method .= '.staff' if $self->api_name =~ /staff$/;
     $method .= '.atomic';
                 
-    return {count => 0} unless ($search_hash and $search_hash->{searches});
+    return {count => 0} unless (
+        $search_hash and 
+        $search_hash->{searches} and 
+        scalar( keys %{$search_hash->{searches}} ));
 
     my $search_duration;
     my $user_offset = $search_hash->{offset} || 0; # user-specified offset