diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl index 3f5e03a090..0b7f470b22 100755 --- a/catalogue/MARCdetail.pl +++ b/catalogue/MARCdetail.pl @@ -90,7 +90,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); my $biblio_object = Koha::Biblios->find( $biblionumber ); # FIXME Should replace $biblio -my $record = $biblio_object->metadata->record({ embed_items => 1 }); +my $record; +$record = $biblio_object->metadata->record({ embed_items => 1 }) if $biblio_object; if ( not defined $record ) { # biblionumber invalid -> report and exit