[LON-CAPA-cvs] cvs: loncom /interface loncoursedata.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 16 Jan 2007 22:50:14 -0000


albertel		Tue Jan 16 17:50:14 2007 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  - bug#5150 was looking in wrong columns for updatetimes
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.179 loncom/interface/loncoursedata.pm:1.180
--- loncom/interface/loncoursedata.pm:1.179	Thu Jan 11 16:09:39 2007
+++ loncom/interface/loncoursedata.pm	Tue Jan 16 17:50:12 2007
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: loncoursedata.pm,v 1.179 2007/01/11 21:09:39 albertel Exp $
+# $Id: loncoursedata.pm,v 1.180 2007/01/16 22:50:12 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1684,7 +1684,7 @@
                                              "student_id ='$student_id'");
     my $data = undef;
     if (@Result) {
-        $updatetime = $Result[0]->[5];  # Ack!  This is dumb!
+        $updatetime = $Result[0]->[6];  # Ack!  This is dumb!
     }
     if ($modifiedtime > $updatetime) {
         ($status,$data) = &update_student_data($sname,$sdom,$courseid);
@@ -1732,7 +1732,7 @@
                                              "student_id ='$student_id'");
     my $updatetime;
     if (@Result && ref($Result[0]) eq 'ARRAY') {
-        $updatetime = $Result[0]->[6];
+        $updatetime = $Result[0]->[7];
     }
     if (! defined($updatetime) || $modifiedtime > $updatetime) {
         $status = &update_full_student_data($sname,$sdom,$courseid);