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:
parent
6dce6bad22
commit
b1f2856974
|
|
@ -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'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue