Show images only if there is one

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-30 13:02:46 -05:00 committed by Joshua Ferraro
parent 6dce6bad22
commit b1f2856974
1 changed files with 1 additions and 1 deletions

View File

@ -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'},