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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 28 May 2004 17:33:42 -0000


albertel		Fri May 28 13:33:42 2004 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Felicia found a way to reset the timer
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.504 loncom/lonnet/perl/lonnet.pm:1.505
--- loncom/lonnet/perl/lonnet.pm:1.504	Thu May 27 18:25:16 2004
+++ loncom/lonnet/perl/lonnet.pm	Fri May 28 13:33:41 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.504 2004/05/27 22:25:16 albertel Exp $
+# $Id: lonnet.pm,v 1.505 2004/05/28 17:33:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1653,7 +1653,11 @@
     my ($symb,$courseid,$udom,$uname)=&Apache::lonxml::whichuser();
     my ($map,$id,$res)=&decode_symb($symb);
     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 {