if no query is sent in the search, return the user to the referring page
authorberick <berick@esilibrary.com>
Thu, 21 Apr 2011 14:03:55 +0000 (10:03 -0400)
committerberick <berick@esilibrary.com>
Thu, 21 Apr 2011 14:03:55 +0000 (10:03 -0400)
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index 5f8643a..50a09f1 100644 (file)
@@ -120,6 +120,8 @@ sub load_rresults {
 
     my ($query, $site, $depth) = _prepare_biblio_search($cgi, $ctx);
 
+    return $self->generic_redirect unless $query;
+
     # Limit and offset will stay here. Everything else should be part of
     # the query string, not special args.
     my $args = {'limit' => $limit, 'offset' => $offset};