[LON-CAPA-cvs] cvs: loncom / lond

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Fri, 30 May 2008 19:53:17 -0000


raeburn		Fri May 30 15:53:17 2008 EDT

  Modified files:              
    /loncom	lond 
  Log:
  Bug 5720.
  Corner case where record for a course in nohist_courseids.db was still using old : separated format for value in $key=$value pair (i.e., not yet changed to frozen hash), only use lasttime from final item in value text string ian case where there is no lasttime:$key item yet ($key is escape courseID).
  
  
Index: loncom/lond
diff -u loncom/lond:1.401 loncom/lond:1.402
--- loncom/lond:1.401	Thu May 29 01:44:48 2008
+++ loncom/lond	Fri May 30 15:53:16 2008
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.401 2008/05/29 05:44:48 raeburn Exp $
+# $Id: lond,v 1.402 2008/05/30 19:53:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.401 $'; #' stupid emacs
+my $VERSION='$Revision: 1.402 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -3717,8 +3717,10 @@
                 next if ($selfenrollonly); 
                 $is_hash =  0;
                 my @courseitems = split(/:/,$value);
-                $lasttime = pop(@courseitems);
-                next if ($lasttime<$since);
+                if ($hashref->{$lasttime_key} eq '') {
+                    $lasttime = pop(@courseitems);
+                    next if ($lasttime<$since);
+                }
 	        ($val{'descr'},$val{'inst_code'},$val{'owner'},$val{'type'}) = @courseitems;
             }
             my $match = 1;