From 74d7ce8ce6884f8b4e460af0f66ac59fb4deed8c 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 699c0cd9bc..b5e87f663f 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -483,7 +483,7 @@ sub getitemtypeimagesrc { sub getitemtypeimagelocation($$) { my ( $src, $image ) = @_; - return if ( !$image ); + return '' if ( !$image ); my $scheme = ( uri_split( $image ) )[0]; -- 2.39.5