From d98ed1dde1a5447a5d33dda666fe3c5228357458 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Thu, 28 Aug 2008 14:58:21 -0600 Subject: [PATCH] bugfix: need to return something if an itemtype doesn't have an image I noticed that on the search pages if an itemtype doesn't have an image it's information doesn't make it out the the template. I don't understand why, but this fixes it. Signed-off-by: Galen Charlton --- C4/Koha.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index 8e5b4c7b2f..a35909f30f 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -487,7 +487,7 @@ sub getitemtypeimagesrc { sub getitemtypeimagelocation($$) { my ( $src, $image ) = @_; - return if ( !$image ); + return '' if ( !$image ); my $scheme = ( uri_split( $image ) )[0]; -- 2.39.5