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

www lon-capa-cvs@mail.lon-capa.org
Mon, 15 Jul 2002 12:22:32 -0000


www		Mon Jul 15 08:22:32 2002 EDT

  Modified files:              
    /rat	lonuserstate.pm 
  Log:
  Fixes problem with empty very first resources in course. Was caught by
  "allowed" before changes towards random pick went in.
  
  
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.33 rat/lonuserstate.pm:1.34
--- rat/lonuserstate.pm:1.33	Sun Jul  7 13:52:20 2002
+++ rat/lonuserstate.pm	Mon Jul 15 08:22:32 2002
@@ -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.33 2002/07/07 17:52:20 www Exp $
+# $Id: lonuserstate.pm,v 1.34 2002/07/15 12:22:32 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -277,7 +277,7 @@
     $sofar=simplify($sofar);
     unless ($beenhere=~/\&$rid\&/) {
        $beenhere.=$rid.'&';  
-       if ($retfurl eq '') {
+       if (($retfurl eq '') && ($hash{'src_'.$rid})) {
            my ($mapid,$resid)=split(/\./,$rid);
            $retfurl=$hash{'src_'.$rid}.'?symb='.
            &Apache::lonnet::symbclean(