diff --git a/Koha/Authority.pm b/Koha/Authority.pm index 9de8be57d1..fec63d32dc 100644 --- a/Koha/Authority.pm +++ b/Koha/Authority.pm @@ -64,7 +64,7 @@ sub get_all_authorities_iterator { { columns => [qw/ authid authtypecode marcxml /] } ); my $next_func = sub { my $row = $rs->next(); - return undef if !$row; + return if !$row; my $authid = $row->authid; my $authtypecode = $row->authtypecode; my $marcxml = $row->marcxml; diff --git a/catalogue/search.pl b/catalogue/search.pl index dd73277bdf..c70efb0dd2 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -472,8 +472,6 @@ my $builder = Koha::SearchEngine::QueryBuilder->new( my $searcher = Koha::SearchEngine::Search->new( { index => $Koha::SearchEngine::BIBLIOS_INDEX } ); -my @results; - ## I. BUILD THE QUERY ( $error, $query, $simple_query, $query_cgi,