From 2aea0aaf60344f661e86b7e2fab649a98fa476b8 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 --- 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.= "$homebranch". "$status". -- 1.7.2.2