Browse Source

Bug 11945: The script should die if the pref are not filled

If the 2 prefs are not defined, the script should die.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
MM-OPAC/theme_dep
Jonathan Druart 10 years ago
committed by Tomas Cohen Arazi
parent
commit
fbc4e94d7f
  1. 3
      misc/cronjobs/delete_expired_opac_registrations.pl

3
misc/cronjobs/delete_expired_opac_registrations.pl

@ -69,6 +69,9 @@ my $delay =
my $category_code =
C4::Context->preference('PatronSelfRegistrationDefaultCategory');
die "PatronSelfRegistrationExpireTemporaryAccountsDelay and PatronSelfRegistrationDefaultCategory should be filled to use this script!"
if not $category_code or not defined $delay or $delay eq q||;
my $query = "
SELECT borrowernumber
FROM borrowers

Loading…
Cancel
Save