From fb25629d1c051db07daaf907c57b2c2be62d3982 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Sat, 12 Sep 2009 12:27:18 -0400 Subject: [PATCH] Bug 3602: Fixes a log error for opac-search.pl if expanded_options is not defined. Signed-off-by: Galen Charlton --- opac/opac-search.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 0cfb802dd2..74f8fe5ecf 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -218,10 +218,11 @@ if ( $template_type eq 'advsearch' ) { $template->param( expanded_options => C4::Context->preference("expandedSearchOption") ); } # but let the user override it - if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) { - $template->param( expanded_options => $cgi->param('expanded_options')); - } - + if (defined $cgi->param('expanded_options')) { + if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) { + $template->param( expanded_options => $cgi->param('expanded_options')); + } + } output_html_with_http_headers $cgi, $cookie, $template->output; exit; } -- 2.20.1