[Koha-patches] [PATCH] returning in case there is no MARC::Record (scanindex)

paul.poulain at biblibre.com paul.poulain at biblibre.com
Fri May 2 19:03:25 CEST 2008


From: Paul POULAIN <paul.poulain at biblibre.com>

diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index 08c17c3..8dee5b3 100755
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -3104,6 +3104,7 @@ sub get_biblio_authorised_values {
     my $authorised_values;
 
     my $record  = GetMarcBiblio( $biblionumber );
+    return unless $record;
     my $tagslib = GetMarcStructure( $forlibrarian, $frameworkcode );
 
     # assume that these entries in the authorised_value table are bibliolevel.
-- 
1.5.3.2




More information about the Koha-patches mailing list