From e11d904ebd21d03a8b22057498317a92d973ef13 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 modified: Koha/SearchEngine/Solr/Search.pm Signed-off-by: Jonathan Druart --- 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.7.3