From 7aeccb7ec227e76a5ea0fbb5085fe2f18ed1b54e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 2 May 2011 09:49:49 +0200 Subject: [PATCH] 6290: Fix warning on XSLT.pm Signed-off-by: Chris Cormack (cherry picked from commit 04e97b57ff568bc759ca4818cb9cc6e879f5d0d1) Signed-off-by: Chris Nighswonger --- C4/XSLT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 28a70fc415..4dafff3825 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.= "$homebranch". "$status". -- 2.39.5