[LON-CAPA-cvs] cvs: modules /msu localenroll.pm

raeburn raeburn at source.lon-capa.org
Sat Jan 29 09:52:37 EST 2022


raeburn		Sat Jan 29 14:52:37 2022 EDT

  Modified files:              
    /modules/msu	localenroll.pm 
  Log:
  - Fix typo in rev 1.89 and move one line.
  
  
Index: modules/msu/localenroll.pm
diff -u modules/msu/localenroll.pm:1.89 modules/msu/localenroll.pm:1.90
--- modules/msu/localenroll.pm:1.89	Fri Jan 28 23:29:43 2022
+++ modules/msu/localenroll.pm	Sat Jan 29 14:52:37 2022
@@ -1,6 +1,6 @@
 # functions to glue school database system into Lon-CAPA for
 # automated enrollment
-# $Id: localenroll.pm,v 1.89 2022/01/28 23:29:43 raeburn Exp $
+# $Id: localenroll.pm,v 1.90 2022/01/29 14:52:37 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1922,10 +1922,10 @@
         %users = %{$lcusersref};
         $total = scalar(keys(%users));
     }
+    return if (($total ne '') && ($total == 0));
     if (ref($conditionref) eq 'HASH') {
         %condition = %{$conditionref};
     }
-    return if (($total ne '') && ($total == 0));
     if (keys(%{$dbflagref})) {
         my %table_to_key;
         if (ref($affiliation_by_tableref) eq 'HASH') {
@@ -1946,7 +1946,7 @@
                         }
                     } elsif ($key eq 'ro') {
                         if ($table eq 'RO_CLIFMS') {
-                            $statement = "SELECT DISTINCT MSUNetId,Emp_Id,PID,Name,Record_Type,Term_Seq_Id FROM $table;
+                            $statement = "SELECT DISTINCT MSUNetId,Emp_Id,PID,Name,Record_Type,Term_Seq_Id FROM $table";
                             if ($condition{$key}{$table_to_key{$table}}) {
                                 $statement .= " WHERE (($condition{$key}{$table_to_key{$table}}) AND (Record_Type = '1' OR Record_Type = 'PI'))";
                             } else {




More information about the LON-CAPA-cvs mailing list