Do not call method on $patron if there is no other reserves
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
my ( $messages, $nextreservinfo ) = GetOtherReserves($itemnumber);
my $patron = Koha::Patrons->find( $nextreservinfo );
- my $name = $patron->surname . ", " . $patron->title . " " . $patron->firstname;
+ my $name = $patron ? $patron->surname . ", " . $patron->title . " " . $patron->firstname : '';
if ( $messages->{'transfert'} ) {
$template->param(
itemtitle => $biblio->title,