Merge remote-tracking branch 'origin/new/bug_6720'
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 2 Aug 2012 13:40:31 +0000 (15:40 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 2 Aug 2012 13:40:31 +0000 (15:40 +0200)
C4/AuthoritiesMarc.pm

index 9ba916d..21ebd94 100644 (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;