View | Details | Raw Unified | Return to bug 35266
Collapse All | Expand All

(-)a/opac/opac-MARCdetail.pl (-2 / +1 lines)
Lines 92-99 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
92
92
93
my $patron = Koha::Patrons->find($loggedinuser);
93
my $patron = Koha::Patrons->find($loggedinuser);
94
my $biblio = Koha::Biblios->find($biblionumber);
94
my $biblio = Koha::Biblios->find($biblionumber);
95
my $record = $biblio->metadata->record;
96
95
96
my $record = $biblio ? $biblio->metadata->record : undef;
97
if ( ! $record ) {
97
if ( ! $record ) {
98
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
98
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
99
    exit;
99
    exit;
100
- 

Return to bug 35266