[LON-CAPA-cvs] cvs: loncom /interface lonchart.pm

minaeibi lon-capa-cvs@mail.lon-capa.org
Thu, 28 Feb 2002 23:25:50 -0000


minaeibi		Thu Feb 28 18:25:50 2002 EDT

  Modified files:              
    /loncom/interface	lonchart.pm 
  Log:
  Fixed Bug 105
  
  
Index: loncom/interface/lonchart.pm
diff -u loncom/interface/lonchart.pm:1.33 loncom/interface/lonchart.pm:1.34
--- loncom/interface/lonchart.pm:1.33	Thu Feb 28 18:14:57 2002
+++ loncom/interface/lonchart.pm	Thu Feb 28 18:25:50 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # (Publication Handler
 #
-# $Id: lonchart.pm,v 1.33 2002/02/28 23:14:57 minaeibi Exp $
+# $Id: lonchart.pm,v 1.34 2002/02/28 23:25:50 minaeibi Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -257,7 +257,9 @@
     my ($udom,$unam,$courseid)=@_;
     $courseid=~s/\_/\//g;
     $courseid=~s/^(\w)/\/$1/;
-    map {
+    foreach (split(/\&/,&Apache::lonnet::reply('dump:'.
+             $udom.':'.$unam.':roles',
+             &Apache::lonnet::homeserver($unam,$udom)))){
         my ($key,$value)=split(/\=/,$_);
         $key=&Apache::lonnet::unescape($key);
         if ($key=~/^$courseid(?:\/)*(\w+)*\_st$/) {
@@ -269,8 +271,9 @@
 #            $r->print($unam.'...'.$section.'<br>');
 	    return $section;
         }
-    } split(/\&/,&Apache::lonnet::reply('dump:'.$udom.':'.$unam.':roles',
-                        &Apache::lonnet::homeserver($unam,$udom)));
+    }
+    #} split(/\&/,&Apache::lonnet::reply('dump:'.$udom.':'.$unam.':roles',
+    #                    &Apache::lonnet::homeserver($unam,$udom)));
     return '';
 }