Bug 9883 - Koha::Plugins::* should not require koha-conf to load - Followup - Load...
[koha.git] / Koha / Authority.pm
index b64f8de..b07db92 100644 (file)
@@ -77,7 +77,7 @@ sub get_from_authid {
     my ($authtypecode, $marcxml) = $sth->fetchrow;
     my $record=eval {MARC::Record->new_from_xml(StripNonXmlChars($marcxml),'UTF-8',
         (C4::Context->preference("marcflavour") eq "UNIMARC"?"UNIMARCAUTH":C4::Context->preference("marcflavour")))};
-    return undef if ($@);
+    return if ($@);
     $record->encoding('UTF-8');
 
     my $self = $class->SUPER::new( { authid => $authid,