[Koha-patches] [PATCH] bugfix: need to return something if an itemtype doesn't have an image

Michael Hafen mdhafen at tech.washk12.org
Thu Aug 28 22:58:21 CEST 2008


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.
---
 C4/Koha.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Koha.pm b/C4/Koha.pm
index 8e5b4c7..a35909f 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];
 
-- 
1.5.4.3




More information about the Koha-patches mailing list