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

(-)a/Koha/Template/Plugin/Biblio.pm (-1 / +1 lines)
Lines 72-77 sub CanBook { Link Here
72
    my ( $self, $biblionumber ) = @_;
72
    my ( $self, $biblionumber ) = @_;
73
73
74
    my $biblio = Koha::Biblios->find($biblionumber);
74
    my $biblio = Koha::Biblios->find($biblionumber);
75
    return 0 unless $biblio;
75
    return $biblio->bookable_items->count ? 1 : 0;
76
    return $biblio->bookable_items->count ? 1 : 0;
76
}
77
}
77
78
78
- 

Return to bug 29002