bugfix: need to return something if an itemtype doesn't have an image
authorMichael Hafen <mdhafen@tech.washk12.org>
Thu, 28 Aug 2008 20:58:21 +0000 (14:58 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 28 Oct 2008 21:09:29 +0000 (22:09 +0100)
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 <galen.charlton@liblime.com>
C4/Koha.pm

index 8e5b4c7..a35909f 100644 (file)
@@ -487,7 +487,7 @@ sub getitemtypeimagesrc {
 sub getitemtypeimagelocation($$) {
        my ( $src, $image ) = @_;
 
-       return if ( !$image );
+       return '' if ( !$image );
 
        my $scheme = ( uri_split( $image ) )[0];