From 983012d5b8d32abebf862f348b0de13aa3e549f3 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 2 Aug 2012 09:18:39 -0400 Subject: [PATCH] Bug 6720 follow-up: fix error when auth has been deleted Thanks to Paul Poulain for finding the problem and proposing a solution. Signed-off-by: Paul Poulain --- C4/AuthoritiesMarc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index ece46a33f0..bcdbf84d14 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -354,7 +354,7 @@ sub SearchAuthorities { my $thisauthtype = GetAuthType(GetAuthTypeCode($authid)); $newline{authtype} = defined ($thisauthtype) ? $thisauthtype->{'authtypetext'} : - GetAuthType($authtypecode)->{'authtypetext'}; + (GetAuthType($authtypecode) ? $_->{'authtypetext'} : ''); $newline{summary} = $summary; $newline{even} = $counter % 2; $newline{reported_tag} = $reported_tag; -- 2.39.5