minor improvement

This commit is contained in:
tipaul 2004-05-06 14:54:44 +00:00
parent c62e76bd74
commit fb4124707b
1 changed files with 5 additions and 1 deletions

View File

@ -143,7 +143,11 @@ sub calculate {
}
my %line;
$line{loopitemtype} = \@loopitemtype;
$line{itemtype} = $itemtypes{$itemtype}->{description};
if ($itemtypes{$itemtype}->{description}) {
$line{itemtype} = $itemtypes{$itemtype}->{description};
} else {
$line{itemtype} = "$itemtype (no entry in itemtype table)";
}
$line{hilighted} = 1 if $hilighted eq 1;
$line{totalitemtype} = $itemtypes{$itemtype}->{total};
$hilighted = -$hilighted;