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

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 13 May 2003 14:30:26 -0000


matthew		Tue May 13 10:30:26 2003 EDT

  Modified files:              
    /loncom/interface	lonstatistics.pm 
  Log:
  Bug 1319 (again) - check for all whitespace instead of just '' for 
  section limits.
  
  
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.69 loncom/interface/lonstatistics.pm:1.70
--- loncom/interface/lonstatistics.pm:1.69	Tue May 13 10:25:37 2003
+++ loncom/interface/lonstatistics.pm	Tue May 13 10:30:26 2003
@@ -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 @@
     }
     #
     # 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 @@
     }
     #
     # 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);