From: Marcel de Rooy Date: Mon, 2 May 2011 07:49:49 +0000 (+0200) Subject: 6290: Fix warning on XSLT.pm X-Git-Tag: v3.06.00~355 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=04e97b57ff568bc759ca4818cb9cc6e879f5d0d1;p=koha_gimpoz 6290: Fix warning on XSLT.pm Signed-off-by: Chris Cormack --- 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".