From 072b1873fe2a813685cab3ca59aede5a730ffb57 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 22 Nov 2013 12:12:06 -0500 Subject: [PATCH] Bug 11183 - Warnings in opac - QA Followup --- opac/opac-search.pl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 8604d0f..e05030f 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -623,7 +623,10 @@ for (my $i=0;$i<@servers;$i++) { my $query_cgi_history = $cgi->url(-query=>1); $query_cgi_history =~ s/^$path_info\?//; $query_cgi_history =~ s/;/&/g; - my $query_desc_history = join ", ", grep { defined $_ } $query_desc, $limit_desc; + + $query_desc ||= q{}; + $limit_desc ||= q{}; + my $query_desc_history = "$query_desc, $limit_desc"; if (!$borrowernumber || $borrowernumber eq '') { # To a cookie (the user is not logged in) -- 1.7.2.5