--- loncom/enrollment/Autoenroll.pl 2003/12/11 15:39:37 1.5 +++ loncom/enrollment/Autoenroll.pl 2003/12/11 15:45:25 1.6 @@ -1,7 +1,7 @@ #!/usr/bin/perl # #Automated Enrollment script -# $Id: Autoenroll.pl,v 1.5 2003/12/11 15:39:37 albertel Exp $ +# $Id: Autoenroll.pl,v 1.6 2003/12/11 15:45:25 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,6 +36,9 @@ use Apache::lonmsg; use HTML::Entities; +#only run if configured to + if (! &localenroll::run()) { exit; } + # Determine the library server's domain my $perlvarref = LONCAPA::Configuration::read_conf('loncapa.conf'); my $dom = $$perlvarref{'lonDefDomain'};