From df57e18019d2c11d58ab875692bd199323372b4d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 Oct 2017 15:40:24 -0300 Subject: [PATCH] Bug 17829: (follow-up) Move GetMember to Koha::Patron Do not call method on $patron if there is no other reserves --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index c42e7504eb..80f228ae0b 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -174,7 +174,7 @@ if ( $query->param('reserve_id') ) { 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, -- 2.11.0