|
Lines 626-632
sub GetPreparedLetter {
Link Here
|
| 626 |
return; |
626 |
return; |
| 627 |
my $want_librarian = $params{want_librarian}; |
627 |
my $want_librarian = $params{want_librarian}; |
| 628 |
if ($want_librarian) { |
628 |
if ($want_librarian) { |
| 629 |
$objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} ); |
629 |
my $userenv = C4::Context->userenv; |
|
|
630 |
$objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} ) if ($userenv); |
| 630 |
} |
631 |
} |
| 631 |
|
632 |
|
| 632 |
# Best guess at language 'default' notice is written for include handling |
633 |
# Best guess at language 'default' notice is written for include handling |