--- loncom/interface/lonstatistics.pm 2003/05/13 14:25:37 1.69 +++ loncom/interface/lonstatistics.pm 2003/05/13 14:30:26 1.70 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.69 2003/05/13 14:25:37 matthew Exp $ +# $Id: lonstatistics.pm,v 1.70 2003/05/13 14:30:26 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -231,7 +231,7 @@ sub PrepareClasslist { } # # Deal with instructors with restricted section access - if ($ENV{'request.course.sec'} ne '') { + if ($ENV{'request.course.sec'} !~ /^\s*$/) { @SelectedSections = ($ENV{'request.course.sec'}); } # @@ -286,7 +286,7 @@ sub PrepareClasslist { } # # Put the consolidated section data in the right place - if ($ENV{'request.course.sec'} ne '') { + if ($ENV{'request.course.sec'} !~ /^\s*$/) { @Sections = ($ENV{'request.course.sec'}); } else { @Sections = sort {$a cmp $b} keys(%Sections);