diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 3b6ae8e2a3..99de9a4dcb 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -168,6 +168,8 @@ foreach my $biblioNumber (@biblionumbers) { # Compute the priority rank. my $biblio = Koha::Biblios->find( $biblioNumber ); + next unless $biblio; + $biblioData->{object} = $biblio; my $holds = $biblio->holds; my $rank = $holds->count;