[LON-CAPA-cvs] cvs: modules /msu localenroll.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Fri, 12 Dec 2003 00:48:35 -0000
raeburn Thu Dec 11 19:48:35 2003 EDT
Modified files:
/modules/msu localenroll.pm
Log:
Added a return to the validate_courseID routine.
Index: modules/msu/localenroll.pm
diff -u modules/msu/localenroll.pm:1.3 modules/msu/localenroll.pm:1.4
--- modules/msu/localenroll.pm:1.3 Thu Dec 11 10:48:37 2003
+++ modules/msu/localenroll.pm Thu Dec 11 19:48:35 2003
@@ -192,7 +192,6 @@
sub validate_courseID {
my $course_id = shift;
- my @secs = ();
my $outcome = '';
if ($course_id =~ m/^([suf]s\d{2})(\w{2,3})(\d{3,4}\w?)(\d{3})/) {
my $term = $1;
@@ -216,7 +215,7 @@
if ($count > 0) {
$outcome = 'ok';
} else {
- $outcome = 'There was no match in the MSU SIS database to the combination of semester ($term), subject ($subj), course ($crse) and section ($sec) you entered.';
+ $outcome = "There was no match in the MSU SIS database to the combination of semester ($term), subject ($subj), course ($crse) and section ($sec) you entered.";
}
};
if ($@) {
@@ -227,7 +226,8 @@
}
} else {
$outcome = "The course section number you entered is not a valid MSU course section";
- }
+ }
+ return $outcome;
}
sub create_password {