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

(-)a/Koha/NewsItem.pm (-2 / +3 lines)
Lines 50-56 Return the Koha::Patron object for the patron who authored this news item Link Here
50
50
51
sub author {
51
sub author {
52
    my ( $self ) = @_;
52
    my ( $self ) = @_;
53
    return Koha::Patron->_new_from_dbic($self->_result->borrowernumber);
53
    my $author_rs = $self->_result->borrowernumber;
54
    return unless $author_rs;
55
    return Koha::Patron->_new_from_dbic( $author_rs );
54
}
56
}
55
57
56
=head3 is_expired
58
=head3 is_expired
57
- 

Return to bug 22544