--- loncom/interface/loncommon.pm 2005/11/15 15:52:51 1.290 +++ loncom/interface/loncommon.pm 2005/11/15 18:07:46 1.292 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.290 2005/11/15 15:52:51 albertel Exp $ +# $Id: loncommon.pm,v 1.292 2005/11/15 18:07:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3128,7 +3128,7 @@ sub get_course_users { my $now = time; foreach my $student (keys(%{$classlist})) { my $match = 0; - if (ref($sections) eq 'ARRAY') && (@{$sections} > 0) { + if ((ref($sections) eq 'ARRAY') && (@{$sections} > 0)) { unless(grep(/^\Q$$classlist{$student}[$idx{section}]\E$/, @{$sections})) { next; @@ -3207,8 +3207,8 @@ sub get_user_info { my ($udom,$uname,$idx,$userdata) = @_; $$userdata{$uname.':'.$udom}[$$idx{fullname}] = &plainname($uname,$udom,'lastname'); - $$userdata{$uname.':'.$udom}[$$idx{uname}] = $uname - $$userdata{$uname.':'.$udom}[$$idx{uname}] = $udom + $$userdata{$uname.':'.$udom}[$$idx{uname}] = $uname; + $$userdata{$uname.':'.$udom}[$$idx{uname}] = $udom; return; } @@ -3350,6 +3350,7 @@ sub no_cache { sub content_type { my ($r,$type,$charset) = @_; + &no_cache($r); if ($env{'browser.mathml'} && $type eq 'text/html') { $type='text/xml'; } unless ($charset) { $charset=&Apache::lonlocal::current_encoding;