projects
/
koha_fer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf0b277
)
quell warning if format parameter isn't passed to opac-search.pl
author
Galen Charlton
<galen.charlton@liblime.com>
Fri, 15 May 2009 15:53:42 +0000
(10:53 -0500)
committer
Galen Charlton
<galen.charlton@liblime.com>
Fri, 15 May 2009 20:52:26 +0000
(15:52 -0500)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/opac-search.pl
patch
|
blob
|
history
diff --git
a/opac/opac-search.pl
b/opac/opac-search.pl
index
03ca39a
..
ae7f4ea
100755
(executable)
--- 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'