[LON-CAPA-cvs] cvs: rat / lonuserstate.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 15 Nov 2005 18:27:53 -0000


albertel		Tue Nov 15 13:27:53 2005 EDT

  Modified files:              
    /rat	lonuserstate.pm 
  Log:
  - doesn't really need it
  
  
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.97 rat/lonuserstate.pm:1.98
--- rat/lonuserstate.pm:1.97	Wed Nov  9 06:39:57 2005
+++ rat/lonuserstate.pm	Tue Nov 15 13:27:52 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construct and maintain state and binary representation of course for user
 #
-# $Id: lonuserstate.pm,v 1.97 2005/11/09 11:39:57 www Exp $
+# $Id: lonuserstate.pm,v 1.98 2005/11/15 18:27:52 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -31,7 +31,6 @@
 
 # ------------------------------------------------- modules used by this module
 use strict;
-use Apache::Constants qw(:common :http);
 use HTML::TokeParser;
 use Apache::lonnet;
 use Apache::loncommon();
@@ -104,7 +103,7 @@
 
 sub loadmap { 
     my $uri=shift;
-    if ($hash{'map_pc_'.$uri}) { return OK; }
+    if ($hash{'map_pc_'.$uri}) { return; }
 
     $pc++;
     my $lpc=$pc;
@@ -119,7 +118,7 @@
     unless (($fn=~/\.sequence$/) ||
             ($fn=~/\.page$/)) { 
 	$errtext.="Invalid map: $fn\n";
-	return OK; 
+	return; 
     }
 
     my $instr=&Apache::lonnet::getfile($fn);