6290: Fix warning on XSLT.pm

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
(cherry picked from commit 04e97b57ff)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Marcel de Rooy 2011-05-02 09:49:49 +02:00 committed by Chris Nighswonger
parent 06a38274ca
commit 7aeccb7ec2
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ sub buildKohaItemsNamespace {
} else {
$status = "available";
}
my $homebranch = xml_escape($branches->{$item->{homebranch}}->{'branchname'});
my $homebranch = $item->{homebranch}? xml_escape($branches->{$item->{homebranch}}->{'branchname'}):'';
my $itemcallnumber = xml_escape($item->{itemcallnumber});
$xml.= "<item><homebranch>$homebranch</homebranch>".
"<status>$status</status>".