--- loncom/interface/lonsupportreq.pm 2006/05/30 12:46:09 1.35 +++ loncom/interface/lonsupportreq.pm 2006/09/01 21:07:11 1.37 @@ -1,5 +1,5 @@ # -# $Id: lonsupportreq.pm,v 1.35 2006/05/30 12:46:09 www Exp $ +# $Id: lonsupportreq.pm,v 1.37 2006/09/01 21:07:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -976,7 +976,8 @@ Please review the information in "Log-in sub retrieve_instcodes { my ($coursecodes,$codedom,$totcodes) = @_; - my %courses = &Apache::lonnet::courseiddump($codedom,'.',1,'.','.','.'); + my %courses = &Apache::lonnet::courseiddump($codedom,'.',1,'.','.','.', + undef,undef,'Course'); foreach my $course (keys %courses) { if ($courses{$course} =~ m/^[^:]*:([^:]+)/) { $$coursecodes{$course} = &unescape($1); @@ -1104,9 +1105,9 @@ sub sort_cats { my ($num,$cat_order,$codetitles,$idsarrayref,$sorted) = @_; my @unsorted = @{$idsarrayref}; if (defined($$cat_order{$$codetitles[$num]})) { - foreach (@{$$cat_order{$$codetitles[$num]}}) { - if (grep/^$_$/,@unsorted) { - push @{$sorted}, $_; + foreach my $item (@{$$cat_order{$$codetitles[$num]}}) { + if (grep/^\Q$item\E$/,@unsorted) { + push @{$sorted}, $item; } } } else {