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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Sat, 10 Nov 2007 00:11:17 -0000


albertel		Fri Nov  9 19:11:17 2007 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - keep same as lonhomework::due_date
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.403 loncom/interface/lonnavmaps.pm:1.404
--- loncom/interface/lonnavmaps.pm:1.403	Thu Oct 18 17:08:08 2007
+++ loncom/interface/lonnavmaps.pm	Fri Nov  9 19:11:13 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.403 2007/10/18 21:08:08 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.404 2007/11/10 00:11:13 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3817,7 +3817,8 @@
 	my $first_access=&Apache::lonnet::get_first_access('map',$self->symb);
 	if (defined($first_access)) {
 	    $interval = $first_access+$interval;
-	    $date = ($interval < $due_date)? $interval : $due_date;
+	    $date = (!$due_date || $interval < $due_date) ? $interval 
+                                                          : $due_date;
 	} else {
 	    $date = $due_date;
 	}