--- loncom/enrollment/localenroll.pm 2003/12/11 15:43:29 1.5 +++ loncom/enrollment/localenroll.pm 2003/12/11 19:01:33 1.7 @@ -1,6 +1,6 @@ # functions to glue school database system into Lon-CAPA for # automated enrollment -# $Id: localenroll.pm,v 1.5 2003/12/11 15:43:29 albertel Exp $ +# $Id: localenroll.pm,v 1.7 2003/12/11 19:01:33 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -29,6 +29,13 @@ package localenroll; use strict; ################################ +# sub run +# set this to return 1 if you want the auto enrollment to run +################################ + +sub run { return 0; } + +################################ # sub fetch_enrollment # # connects to the institutional classlist data source, @@ -128,13 +135,12 @@ use strict; ################################ sub fetch_enrollment { - my ($dom,$affiliatesref,$replyref) = @_; - foreach my $crs (sort keys %{$affiliatesref}) { - $$replyref{$crs} = 0; - } - } - my $okflag = 0; - return $okflag; + my ($dom,$affiliatesref,$replyref) = @_; + foreach my $crs (sort keys %{$affiliatesref}) { + $$replyref{$crs} = 0; + } + my $okflag = 0; + return $okflag; } ###############################