$template->param(
borrower => $borrower,
guarantor => Koha::Borrowers->find($borrowernumber)->guarantor(),
guarantor => scalar Koha::Borrowers->find($borrowernumber)->guarantor(),
);
if (C4::Context->preference('OPACpatronimages')) {
-