Fix for BUG 1653
authorChris Nighswonger <cnighswonger@foundations.edu>
Thu, 13 Dec 2007 22:59:09 +0000 (17:59 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 13 Dec 2007 23:27:13 +0000 (17:27 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
opac/opac-search.pl

index 58fc3f5..fb0e46d 100755 (executable)
@@ -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