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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 25 Jul 2006 00:57:51 -0000


albertel		Mon Jul 24 20:57:51 2006 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - interval needs to have a value for us to care about it
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.389 loncom/interface/lonnavmaps.pm:1.390
--- loncom/interface/lonnavmaps.pm:1.389	Thu Jun 29 12:32:14 2006
+++ loncom/interface/lonnavmaps.pm	Mon Jul 24 20:57:51 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.389 2006/06/29 16:32:14 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.390 2006/07/25 00:57:51 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4046,7 +4046,7 @@
     my $date;
     my $interval=$self->parmval("interval", $part);
     my $due_date=$self->parmval("duedate", $part);
-    if (defined($interval)) {
+    if ($interval =~ /\d+/) {
 	my $first_access=&Apache::lonnet::get_first_access('map',$self->symb);
 	if (defined($first_access)) {
 	    $interval = $first_access+$interval;