From: erickson Date: Mon, 1 Jun 2009 20:36:42 +0000 (+0000) Subject: if no search terms are sent, exit early X-Git-Tag: sprint4-merge-nov22~9877 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dfb30f3a3c128f16a358c8c3e0c3cbdf6c65944f;p=working%2FEvergreen.git if no search terms are sent, exit early git-svn-id: svn://svn.open-ils.org/ILS/trunk@13281 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 1cf6fa20f9..5506baf216 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -852,6 +852,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