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

(-)a/misc/cronjobs/cleanup_database.pl (-2 / +1 lines)
Lines 524-530 if ($verbose) { Link Here
524
    say $confirm ? sprintf( "Deleted %d patrons", $count ) : sprintf( "%d patrons would have been deleted", $count );
524
    say $confirm ? sprintf( "Deleted %d patrons", $count ) : sprintf( "%d patrons would have been deleted", $count );
525
}
525
}
526
526
527
if ($pExpSelfReg) {
527
if ( $pExpSelfReg && C4::Context->preference('PatronSelfRegistration') ) {
528
    try {
528
    try {
529
        my $opac_registrations = Koha::Patrons->search->filter_by_expired_opac_registrations->filter_by_safe_to_delete;
529
        my $opac_registrations = Koha::Patrons->search->filter_by_expired_opac_registrations->filter_by_safe_to_delete;
530
        my $count              = $opac_registrations->count;
530
        my $count              = $opac_registrations->count;
531
- 

Return to bug 40744