[LON-CAPA-cvs] cvs: modules /msu localenroll.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Wed, 15 Nov 2006 20:12:27 -0000
raeburn Wed Nov 15 15:12:27 2006 EDT
Modified files:
/modules/msu localenroll.pm
Log:
&check_section returns 'ok' if section is validated for course owner.
Index: modules/msu/localenroll.pm
diff -u modules/msu/localenroll.pm:1.22 modules/msu/localenroll.pm:1.23
--- modules/msu/localenroll.pm:1.22 Tue Oct 17 14:31:51 2006
+++ modules/msu/localenroll.pm Wed Nov 15 15:12:27 2006
@@ -1,6 +1,6 @@
# functions to glue school database system into Lon-CAPA for
# automated enrollment
-# $Id: localenroll.pm,v 1.22 2006/10/17 18:31:51 raeburn Exp $
+# $Id: localenroll.pm,v 1.23 2006/11/15 20:12:27 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -452,8 +452,10 @@
if ($sectioncheck == 0) {
my $outcome = &new_course($class,$owner,$dom);
if ($outcome eq 'ok') {
- $sectioncheck = 1;
+ $sectioncheck = 'ok';
}
+ } elsif ($sectioncheck > 0) {
+ $sectioncheck eq 'ok';
}
}
}