From: berick Date: Thu, 21 Apr 2011 14:03:55 +0000 (-0400) Subject: if no query is sent in the search, return the user to the referring page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c046d9fad4df8b7b5eb1cc35d8078f100469d00a;p=evergreen%2Fequinox.git if no query is sent in the search, return the user to the referring page --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index 5f8643a623..50a09f1c79 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -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};