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

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 16 Jul 2003 20:30:36 -0000


matthew		Wed Jul 16 16:30:36 2003 EDT

  Modified files:              
    /loncom/interface/spreadsheet	studentcalc.pm 
  Log:
  Added paranoia about when to recalculate the student level sheet.
  
  
Index: loncom/interface/spreadsheet/studentcalc.pm
diff -u loncom/interface/spreadsheet/studentcalc.pm:1.14 loncom/interface/spreadsheet/studentcalc.pm:1.15
--- loncom/interface/spreadsheet/studentcalc.pm:1.14	Wed Jul 16 11:57:32 2003
+++ loncom/interface/spreadsheet/studentcalc.pm	Wed Jul 16 16:30:36 2003
@@ -1,5 +1,5 @@
 #
-# $Id: studentcalc.pm,v 1.14 2003/07/16 15:57:32 matthew Exp $
+# $Id: studentcalc.pm,v 1.15 2003/07/16 20:30:36 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -615,6 +615,8 @@
     my $self = shift;
     my $student = $self->{'name'}.':'.$self->{'domain'};
     if (! exists($Exportrows{$student}) ||
+        ! defined($Exportrows{$student}) ||
+        ! defined($Exportrows{$student}->{'data'}) ||
         ! $self->check_expiration_time($Exportrows{$student}->{'time'})) {
         $self->compute();
     }