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

(-)a/C4/SIP/Sip/MsgType.pm (-2 / +1 lines)
Lines 504-510 sub handle_patron_status { Link Here
504
504
505
    $ils->check_inst_id( $fields->{ (FID_INST_ID) }, "handle_patron_status" );
505
    $ils->check_inst_id( $fields->{ (FID_INST_ID) }, "handle_patron_status" );
506
    $patron = $ils->find_patron( $fields->{ (FID_PATRON_ID) } );
506
    $patron = $ils->find_patron( $fields->{ (FID_PATRON_ID) } );
507
    if ( C4::Context->preference('TrackLastPatronActivityTriggers') ) {
507
    if ( C4::Context->preference('TrackLastPatronActivityTriggers') && $patron ) {
508
        my $koha_patron = Koha::Patrons->find($patron->{borrowernumber});
508
        my $koha_patron = Koha::Patrons->find($patron->{borrowernumber});
509
        $koha_patron->update_lastseen('connection');
509
        $koha_patron->update_lastseen('connection');
510
    }
510
    }
511
- 

Return to bug 38284