From bb59cf695dbc90ec75cb6c5318b489633e1f4b52 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 Content-Type: text/plain; charset="utf-8" --- 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.6.0.6