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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 02 Mar 2007 23:53:20 -0000


albertel		Fri Mar  2 18:53:20 2007 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - code clarity, the var containst the lonid of the home server of the course
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.839 loncom/lonnet/perl/lonnet.pm:1.840
--- loncom/lonnet/perl/lonnet.pm:1.839	Fri Mar  2 18:43:24 2007
+++ loncom/lonnet/perl/lonnet.pm	Fri Mar  2 18:53:19 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.839 2007/03/02 23:43:24 albertel Exp $
+# $Id: lonnet.pm,v 1.840 2007/03/02 23:53:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1843,8 +1843,9 @@
 # Write course id database (reverse lookup) to homeserver of courses 
 # Is used in pickcourse
 #
-    foreach my $crsid (keys(%courseidbuffer)) {
-        &courseidput($hostdom{$crsid},$courseidbuffer{$crsid},$crsid);
+    foreach my $crs_home (keys(%courseidbuffer)) {
+        &courseidput($hostdom{$crs_home},$courseidbuffer{$crs_home},
+		     $crs_home);
     }
 #
 # File accesses