Lines 844-856
if ( C4::Context->preference('reviewson') ) {
Link Here
|
844 |
my $patron = Koha::Patrons->find( $review->{borrowernumber} ); |
844 |
my $patron = Koha::Patrons->find( $review->{borrowernumber} ); |
845 |
|
845 |
|
846 |
# setting some borrower info into this hash |
846 |
# setting some borrower info into this hash |
847 |
$review->{patron} = $patron; |
847 |
if ( $patron ) { |
848 |
if ( $libravatar_enabled and $patron and $patron->email ) { |
848 |
$review->{patron} = $patron; |
849 |
$review->{avatarurl} = libravatar_url( email => $patron->email, https => $ENV{HTTPS} ); |
849 |
if ( $libravatar_enabled and $patron->email ) { |
850 |
} |
850 |
$review->{avatarurl} = libravatar_url( email => $patron->email, https => $ENV{HTTPS} ); |
|
|
851 |
} |
851 |
|
852 |
|
852 |
if ( $patron and $patron->borrowernumber eq $borrowernumber ) { |
853 |
if ( $patron->borrowernumber eq $borrowernumber ) { |
853 |
$loggedincommenter = 1; |
854 |
$loggedincommenter = 1; |
|
|
855 |
} |
854 |
} |
856 |
} |
855 |
} |
857 |
} |
856 |
} |
858 |
} |
857 |
- |
|
|