From fb4124707b3a95b18f3376a47e06238e72684591 Mon Sep 17 00:00:00 2001 From: tipaul Date: Thu, 6 May 2004 14:54:44 +0000 Subject: [PATCH] minor improvement --- reports/issues_by_borrower_category.plugin | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reports/issues_by_borrower_category.plugin b/reports/issues_by_borrower_category.plugin index 608ae22317..868fcbc846 100644 --- a/reports/issues_by_borrower_category.plugin +++ b/reports/issues_by_borrower_category.plugin @@ -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;