Diff for /loncom/homework/lonhomework.pm between versions 1.282 and 1.283

version 1.282, 2007/11/03 00:52:06 version 1.283, 2007/11/10 01:38:21
Line 543  sub due_date { Line 543  sub due_date {
  &Apache::lonxml::debug("looking for first_access $first_access");   &Apache::lonxml::debug("looking for first_access $first_access");
  if (defined($first_access)) {   if (defined($first_access)) {
     $interval = $first_access+$interval;      $interval = $first_access+$interval;
     $date = ($interval < $due_date)? $interval : $due_date;      $date = (!$due_date || $interval < $due_date) ? $interval
                                                             : $due_date;
  } else {   } else {
     $date = $due_date;      $date = $due_date;
  }   }

Removed from v.1.282  
changed lines
  Added in v.1.283


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>