diff --git a/Koha/Template/Plugin/Biblio.pm b/Koha/Template/Plugin/Biblio.pm index fb1193065f..79c7284292 100644 --- a/Koha/Template/Plugin/Biblio.pm +++ b/Koha/Template/Plugin/Biblio.pm @@ -72,6 +72,7 @@ sub CanBook { my ( $self, $biblionumber ) = @_; my $biblio = Koha::Biblios->find($biblionumber); + return 0 unless $biblio; return $biblio->bookable_items->count ? 1 : 0; }