From: Michael Hafen Date: Thu, 28 Aug 2008 20:58:21 +0000 (-0600) Subject: bugfix: need to return something if an itemtype doesn't have an image X-Git-Tag: v3.00.01.005~388 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=69a77be139e8ce9c1bd26bb0c41e1150748c4b93;p=koha.git 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 --- 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];