Bug 18789: (follow-up) Use Koha::Patron->image from the templates
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 7 Feb 2018 18:54:31 +0000 (15:54 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Feb 2018 16:03:58 +0000 (13:03 -0300)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Patron.pm

index b9b8629..8459299 100644 (file)
@@ -126,7 +126,7 @@ sub guarantor {
 sub image {
     my ( $self ) = @_;
 
-    return Koha::Patron::Images->find( $self->borrowernumber );
+    return scalar Koha::Patron::Images->find( $self->borrowernumber );
 }
 
 sub library {