From: Marcel de Rooy Date: Mon, 28 Mar 2022 12:07:43 +0000 (+0000) Subject: Bug 30377: Fix two CGI::param called in list context-warnings X-Git-Tag: v22.05.00~698 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=56107babc72da9d99b9fd7a097f3c8ff741435b4;p=koha-ffzg.git Bug 30377: Fix two CGI::param called in list context-warnings Trivial fix. Test plan: Delete two lines from opac search history. Verify results. Check plack-opac-error.log. Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Fridolin Somers --- diff --git a/opac/opac-search-history.pl b/opac/opac-search-history.pl index 019fdc6b69..8ef23062e7 100755 --- a/opac/opac-search-history.pl +++ b/opac/opac-search-history.pl @@ -102,7 +102,7 @@ unless ( $loggedinuser ) { C4::Search::History::delete( { userid => $loggedinuser, - id => [ $cgi->param('id') ], + id => [ @id ], } ); } else { diff --git a/serials/claims.pl b/serials/claims.pl index a16d840efe..5b5479f749 100755 --- a/serials/claims.pl +++ b/serials/claims.pl @@ -59,7 +59,7 @@ my @serialnums=$input->multi_param('serialid'); if (@serialnums) { # i.e. they have been flagged to generate claims my $err; eval { - $err = SendAlerts('claimissues',\@serialnums,$input->param("letter_code")); + $err = SendAlerts( 'claimissues', \@serialnums, scalar $input->param("letter_code") ); if ( not ref $err or not exists $err->{error} ) { C4::Serials::updateClaim( \@serialnums ); }