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

(-)a/Koha/ILL/Request/Workflow/HistoryCheck.pm (-2 / +1 lines)
Lines 54-60 sub show_history_check { Link Here
54
54
55
    my $opac_no_matching_requests_for_patron = 0;
55
    my $opac_no_matching_requests_for_patron = 0;
56
    if ( $self->{ui_context} eq 'opac' ) {
56
    if ( $self->{ui_context} eq 'opac' ) {
57
        my $patron_cardnumber = C4::Context->userenv->{'cardnumber'} || 0;
57
        my $patron_cardnumber = C4::Context->userenv ? C4::Context->userenv->{'cardnumber'} || 0 : 0;
58
        my ( $matching_requests_for_patron, $remaining_matching_requests ) =
58
        my ( $matching_requests_for_patron, $remaining_matching_requests ) =
59
            $self->_get_split_matching_requests($patron_cardnumber);
59
            $self->_get_split_matching_requests($patron_cardnumber);
60
        $opac_no_matching_requests_for_patron = 1
60
        $opac_no_matching_requests_for_patron = 1
61
- 

Return to bug 38441