[open-ils-commits] r13281 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Search (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jun 1 16:36:46 EDT 2009


Author: erickson
Date: 2009-06-01 16:36:42 -0400 (Mon, 01 Jun 2009)
New Revision: 13281

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
if no search terms are sent, exit early

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2009-06-01 19:58:57 UTC (rev 13280)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2009-06-01 20:36:42 UTC (rev 13281)
@@ -852,6 +852,8 @@
 
     $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



More information about the open-ils-commits mailing list