projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9e3d0
)
bugfix: need to return something if an itemtype doesn't have an image
author
Michael Hafen
<mdhafen@tech.washk12.org>
Thu, 28 Aug 2008 20:58:21 +0000
(14:58 -0600)
committer
Henri-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
patch
|
blob
|
history
diff --git
a/C4/Koha.pm
b/C4/Koha.pm
index
8e5b4c7
..
a35909f
100644
(file)
--- 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];