From fda2f9c0391d6260a7b45139fd828b0eda29ebf6 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 15 May 2009 10:53:42 -0500 Subject: [PATCH] quell warning if format parameter isn't passed to opac-search.pl Signed-off-by: Galen Charlton --- opac/opac-search.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 03ca39ae86..ae7f4ea37c 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -632,9 +632,9 @@ if (defined $barshelves) { my $content_type; -if ($cgi->param('format') =~ /rss/) { +if ($cgi->param('format') && $cgi->param('format') =~ /rss/) { $content_type = 'rss' -} elsif ($cgi->param('format') =~ /atom/) { +} elsif ($cgi->param('format') && $cgi->param('format') =~ /atom/) { $content_type = 'atom' } else { $content_type = 'html' -- 2.39.5