From 4956fd04cc176231605987e9c0e8dea7a14a5c81 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 eb14e6dac8..3589010b0f 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -485,7 +485,7 @@ sub getitemtypeimagesrc { sub getitemtypeimagelocation($$) { my ( $src, $image ) = @_; - return if ( !$image ); + return '' if ( !$image ); my $scheme = ( uri_split( $image ) )[0]; -- 2.20.1