From b1f2856974e8fca6ee1bb0ad4c6302aa0b85b09a Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 30 Oct 2007 13:02:46 -0500 Subject: [PATCH] Show images only if there is one Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- opac/opac-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 8c56245a9d..c5ce7956b1 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -240,7 +240,7 @@ my $imgdir = getitemtypeimagesrc(); foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row = ( number => $cnt++, - imageurl => $imgdir . "/" . $itemtypes->{$thisitemtype}->{'imageurl'}, + imageurl => $itemtypes->{$thisitemtype}->{'imageurl'}?$imgdir . "/" . $itemtypes->{$thisitemtype}->{'imageurl'}:'', code => $thisitemtype, selected => $selected, description => $itemtypes->{$thisitemtype}->{'description'}, -- 2.39.5