From a37146487bcde589ad30fc877a97c16db02fa50c Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 1 Jun 2009 20:37:13 +0000 Subject: [PATCH] if no search terms are sent, exit early git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@13282 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index edb5128aec..e7fe1b27d1 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -780,6 +780,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 -- 2.11.0