From 6bf61aa64f39ab987a59afb41f1c5dd255895209 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Thu, 13 Dec 2007 17:59:09 -0500 Subject: [PATCH] Fix for BUG 1653 Signed-off-by: Joshua Ferraro --- opac/opac-search.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 58fc3f5a26..fb0e46d660 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -560,6 +560,10 @@ for (my $i=0;$i<=@servers;$i++) { previous_page_offset => $previous_page_offset) unless $pages < 2; $template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number; } + else { + # Here we must handle cases where no results are returned otherwise the template gives a malformed message. -fbcit + $template->param(query_desc => $query_desc); + } } # end of the if local else { # check if it's a z3950 or opensearch source -- 2.39.5