[Koha-patches] [PATCH] [SIGNED-OFF] 6290: Fix warning on XSLT.pm

Frédéric Demians f.demians at tamil.fr
Fri May 13 09:59:16 CEST 2011


From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

---
 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.4



More information about the Koha-patches mailing list