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

(-)a/misc/cronjobs/anonymize_last_borrowers.pl (-9 / +8 lines)
Lines 56-72 if ($help) { Link Here
56
    usage(0);
56
    usage(0);
57
}
57
}
58
58
59
my $pref1 = C4::Context->preference("AnonymizeLastBorrower");
59
my $AnonymizeLastBorrower = C4::Context->preference("AnonymizeLastBorrower");
60
my $pref2 = C4::Context->preference("AnonymousPatron");
60
my $AnonymousPatron       = C4::Context->preference("AnonymousPatron");
61
61
62
if ( !$pref1 ) {
62
unless ($AnonymizeLastBorrower) {
63
    print "Preference 'AnonymizeLastBorrower' must be enabled to anonymize item's last borrower\n\n";
63
    print STDERR "Preference 'AnonymizeLastBorrower' must be enabled to anonymize item's last borrower\n\n";
64
    usage(1);
64
    exit(1);
65
}
65
}
66
66
67
if ( !$pref2 ) {
67
unless ($AnonymousPatron) {
68
    print "Preference 'AnonymousPatron' must be enabled to anonymize item's last borrower\n\n";
68
    print STDERR "Preference 'AnonymousPatron' must be enabled to anonymize item's last borrower\n\n";
69
    usage(1);
69
    exit(1);
70
}
70
}
71
71
72
unless ($confirm) {
72
unless ($confirm) {
73
- 

Return to bug 23260