From 07c246ba78b92599c949c18d746a43ed836087e6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 5 Sep 2016 15:18:57 -0300 Subject: [PATCH] Bug 16911: (QA followup) CGI->param should not be called in list context Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- members/member-password.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/member-password.pl b/members/member-password.pl index 7d2976e63a..d2255f8ddf 100755 --- a/members/member-password.pl +++ b/members/member-password.pl @@ -73,7 +73,7 @@ if ( $newpassword && !scalar(@errors) ) { token => scalar $input->param('csrf_token'), }); - my $digest = Koha::AuthUtils::hash_password( $input->param('newpassword') ); + my $digest = Koha::AuthUtils::hash_password( scalar $input->param('newpassword') ); my $uid = $input->param('newuserid') || $bor->{userid}; my $dbh = C4::Context->dbh; if ( Koha::Patrons->find( $member )->update_password($uid, $digest) ) { -- 2.39.5