--- loncom/interface/lonmodifycourse.pm 2011/01/11 22:09:49 1.58 +++ loncom/interface/lonmodifycourse.pm 2011/01/15 18:24:16 1.59 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # handler for DC-only modifiable course settings # -# $Id: lonmodifycourse.pm,v 1.58 2011/01/11 22:09:49 raeburn Exp $ +# $Id: lonmodifycourse.pm,v 1.59 2011/01/15 18:24:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -845,10 +845,10 @@ sub modify_course { push(@warnings,&mt('There is no owner associated with this LON-CAPA course.'). '
'.&mt('If automated enrollment at your institution requires validation of course owners, automated enrollment will fail.')); } else { + my %crsenv = &Apache::lonnet::get('environment',['internal.co-owners'],$cdom,$cnum); + my $coowners = $crsenv{'internal.co-owners'}; if (@sections > 0) { if ($changed{'code'}) { - my %crsenv = &Apache::lonnet::get('environment',['internal.co-owners'],$cdom,$cnum); - my $coowners = $crsenv{'internal.co-owners'}; foreach my $sec (@sections) { if ($sec =~ m/^(.+):/) { my $instsec = $1;