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 <paul.poulain@biblibre.com>
This commit is contained in:
Jared Camins-Esakov 2012-08-02 09:18:39 -04:00 committed by Paul Poulain
parent 049d13e24d
commit 983012d5b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;