[Koha-patches] [Signed Off] [PATCH] 6290: Fix warning on XSLT.pm
Chris Cormack
chris at bigballofwax.co.nz
Fri May 13 09:52:08 CEST 2011
From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
---
C4/XSLT.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/XSLT.pm b/C4/XSLT.pm
index 28a70fc..4dafff3 100755
--- a/C4/XSLT.pm
+++ b/C4/XSLT.pm
@@ -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>".
--
1.7.2.2
More information about the Koha-patches
mailing list