[Koha-patches] [PATCH] 6290: Fix warning on XSLT.pm
Marcel de Rooy
M.de.Rooy at rijksmuseum.nl
Mon May 2 10:02:45 CEST 2011
---
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.6.0.6
More information about the Koha-patches
mailing list