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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 25 May 2005 21:33:37 -0000


albertel		Wed May 25 17:33:37 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - was retrning incorrect value for first acces to a student specifi userres info
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.635 loncom/lonnet/perl/lonnet.pm:1.636
--- loncom/lonnet/perl/lonnet.pm:1.635	Fri May  6 02:45:01 2005
+++ loncom/lonnet/perl/lonnet.pm	Wed May 25 17:33:35 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.635 2005/05/06 06:45:01 albertel Exp $
+# $Id: lonnet.pm,v 1.636 2005/05/25 21:33:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4176,6 +4176,7 @@
     } elsif ($tmp=~/error: 2 /) {
 	#&EXT_cache_set($udom,$uname);
 	&do_cache_new('userres',$hashid,undef,600);
+	undef($tmp); # not really an error so don't send it back
     }
     return $tmp;
 }
@@ -4650,7 +4651,6 @@
 	}
 	my ($extension) = ($uri =~ /\.(\w+)$/);
 	foreach my $key (sort(keys(%packagetab))) {
-	    #&logthis("extsion1 $extension $key !!");
 	    #no specific packages #how's our extension
 	    if ($key!~/^extension_\Q$extension\E&/) { next; }
 	    &metadata_create_package_def($uri,$key,'extension_'.$extension,