Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.504 and 1.505

version 1.504, 2004/05/27 22:25:16 version 1.505, 2004/05/28 17:33:41
Line 1653  sub set_first_access { Line 1653  sub set_first_access {
     my ($symb,$courseid,$udom,$uname)=&Apache::lonxml::whichuser();      my ($symb,$courseid,$udom,$uname)=&Apache::lonxml::whichuser();
     my ($map,$id,$res)=&decode_symb($symb);      my ($map,$id,$res)=&decode_symb($symb);
     if ($type eq 'map') { $res=$map; }      if ($type eq 'map') { $res=$map; }
     return &put('firstaccesstimes',{$res=>time},$udom,$uname);      my $firstaccess=&get_first_access($type);
       if (!$firstaccess) {
    return &put('firstaccesstimes',{$res=>time},$udom,$uname);
       }
       return 'already_set';
 }  }
   
 sub checkout {  sub checkout {

Removed from v.1.504  
changed lines
  Added in v.1.505


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