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

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 23 Jun 2004 20:51:15 -0000


matthew		Wed Jun 23 16:51:15 2004 EDT

  Modified files:              
    /loncom/interface/statistics	lonproblemanalysis.pm 
  Log:
  No need to tell the user there are no students in the selected section
  before they have chosen a problem to analyze.
  
  
Index: loncom/interface/statistics/lonproblemanalysis.pm
diff -u loncom/interface/statistics/lonproblemanalysis.pm:1.85 loncom/interface/statistics/lonproblemanalysis.pm:1.86
--- loncom/interface/statistics/lonproblemanalysis.pm:1.85	Fri Jun  4 17:42:18 2004
+++ loncom/interface/statistics/lonproblemanalysis.pm	Wed Jun 23 16:51:14 2004
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonproblemanalysis.pm,v 1.85 2004/06/04 21:42:18 matthew Exp $
+# $Id: lonproblemanalysis.pm,v 1.86 2004/06/23 20:51:14 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -77,7 +77,7 @@
     #
     my @Students = @Apache::lonstatistics::Students;
     #
-    if (@Students < 1) {
+    if (@Students < 1 && exists($ENV{'form.firstrun'})) {
         $r->print('<h2>There are no students in the sections selected</h2>');
     }
     #