[LON-CAPA-cvs] cvs: loncom(version_1_2_X) /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 27 Sep 2004 19:02:11 -0000


albertel		Mon Sep 27 15:02:11 2004 EDT

  Modified files:              (Branch: version_1_2_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - backpor 1.548
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.523.2.7 loncom/lonnet/perl/lonnet.pm:1.523.2.8
--- loncom/lonnet/perl/lonnet.pm:1.523.2.7	Fri Sep 24 11:51:11 2004
+++ loncom/lonnet/perl/lonnet.pm	Mon Sep 27 15:02:11 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.523.2.7 2004/09/24 15:51:11 albertel Exp $
+# $Id: lonnet.pm,v 1.523.2.8 2004/09/27 19:02:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -795,11 +795,11 @@
         if ($key eq $courseid.'_st') { $section=''; }
         my ($dummy,$end,$start)=split(/\_/,&unescape($value));
         my $now=time;
-        if (defined($end) && ($now > $end)) {
+        if (defined($end) && $end && ($now > $end)) {
             $Expired{$end}=$section;
             next;
         }
-        if (defined($start) && ($now < $start)) {
+        if (defined($start) && $start && ($now < $start)) {
             $Pending{$start}=$section;
             next;
         }