From c56bc65de847996eef1e69664632d5a1ac80bcea Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 Jul 2012 16:14:35 +0200 Subject: [PATCH] Bug 8172: Followup: Removes useless empty params Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- C4/Search.pm | 2 +- cataloguing/addbooks.pl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index fd8161084c..9f843c38e9 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1792,7 +1792,7 @@ sub searchResults { # XSLT processing of some stuff use C4::Charset; SetUTF8Flag($marcrecord); - $debug && warn $marcrecord->as_formatted; + warn $marcrecord->as_formatted if $DEBUG; my $interface = $search_context eq 'opac' ? 'OPAC' : ''; if (!$scan && C4::Context->preference($interface . "XSLTResultsDisplay")) { $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, $interface."XSLTResultsDisplay", 1, \@hiddenitems); diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 5f3b7d3220..7bca2f3f46 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -70,8 +70,7 @@ if ($query) { # build query my @operands = $query; - my (@operators, @indexes, @sort_by, @limits) = (); - my ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(\@operators,\@operands,\@indexes,\@limits,\@sort_by,undef,undef); + my ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(undef,\@operands); # find results my ( $error, $marcresults, $total_hits ) = SimpleSearch($builtquery, $results_per_page * ($page - 1), $results_per_page); -- 2.39.5