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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 16 Aug 2006 20:27:31 -0000


albertel		Wed Aug 16 16:27:31 2006 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - BUG#4971, no env for the coded exams
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.769 loncom/lonnet/perl/lonnet.pm:1.770
--- loncom/lonnet/perl/lonnet.pm:1.769	Fri Aug  4 17:33:34 2006
+++ loncom/lonnet/perl/lonnet.pm	Wed Aug 16 16:27:30 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.769 2006/08/04 21:33:34 albertel Exp $
+# $Id: lonnet.pm,v 1.770 2006/08/16 20:27:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5737,6 +5737,9 @@
 	if (($uname eq $env{'user.name'})&&($udom eq $env{'user.domain'})) {
 	    return $env{'environment.'.$spacequalifierrest};
 	} else {
+	    if ($uname eq 'anonymous' && $udom eq '') {
+		return '';
+	    }
 	    my %returnhash=&userenvironment($udom,$uname,
 					    $spacequalifierrest);
 	    return $returnhash{$spacequalifierrest};