diff --git a/opac/opac-discharge.pl b/opac/opac-discharge.pl index 605efb7b49..de1ca85bc4 100755 --- a/opac/opac-discharge.pl +++ b/opac/opac-discharge.pl @@ -92,6 +92,8 @@ else { borrowernumber => $loggedinuser, pending => 1, }); + # FIXME looks like $available is not needed + # If a patron is discharged he has a validated discharge available my $available = Koha::Patron::Discharge::count({ borrowernumber => $loggedinuser, validated => 1, diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 6b1d98e01e..3eac79f656 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -99,6 +99,8 @@ if ($debar) { if ( $debar ne "9999-12-31" ) { $borr->{'userdebarreddate'} = $debar; } + # FIXME looks like $available is not needed + # If a patron is discharged he has a validated discharge available my $available = Koha::Patron::Discharge::count({ borrowernumber => $borrowernumber, validated => 1,