X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fsetstatus.pl;h=31a62e63108a687ee7d511b70818d9487c583c3c;hb=b93e6df3a1b7051bc92220cf6bd829c2229bfa70;hp=addeeb3b8265d884ed1d2f6a6274edce5a89b3ae;hpb=88b3711ca918877796d8577c54efe3f0aba96673;p=koha_fer diff --git a/members/setstatus.pl b/members/setstatus.pl index addeeb3b82..31a62e6310 100755 --- a/members/setstatus.pl +++ b/members/setstatus.pl @@ -36,7 +36,7 @@ my $input = new CGI; my $flagsrequired; $flagsrequired->{borrowers}=1; -my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired); +checkauth($input, 0, $flagsrequired); my $destination = $input->param("destination") || ''; my $cardnumber = $input->param("cardnumber"); @@ -51,8 +51,8 @@ if ( $reregistration eq 'y' ) { # re-reregistration function to automatic calcul of date expiry $dateexpiry = ExtendMemberSubscriptionTo( $borrowernumber ); } else { - my $sth=$dbh->prepare("Update borrowers set debarred = ? where borrowernumber = ?"); - $sth->execute($status,$borrowernumber); + my $sth = $dbh->prepare("UPDATE borrowers SET debarred = ?, debarredcomment = '' WHERE borrowernumber = ?"); + $sth->execute( $status, $borrowernumber ); $sth->finish; }