From 404baaaa3e7cac7475f2f9d392fcbcb9f42f839d Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 18 Jul 2012 14:04:50 +1200 Subject: [PATCH] Bug 8463 - Koha/SearchEngine/Solr/Search.pm fails perlcritic test Content-Type: text/plain; charset="utf-8" http://koha-community.org modified: Koha/SearchEngine/Solr/Search.pm --- Koha/SearchEngine/Solr/Search.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Koha/SearchEngine/Solr/Search.pm b/Koha/SearchEngine/Solr/Search.pm index 5c626ba..b177ca4 100644 --- a/Koha/SearchEngine/Solr/Search.pm +++ b/Koha/SearchEngine/Solr/Search.pm @@ -38,7 +38,8 @@ sub search { ) : ( "recordid", "id" ); - my $recordtype = ref($filters->{recordtype}) eq 'ARRAY' + my $recordtype; + $recordtype = ref($filters->{recordtype}) eq 'ARRAY' ? $filters->{recordtype}[0] : $filters->{recordtype} if defined $filters && defined $filters->{recordtype}; -- 1.7.2.5