--- loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2006/05/01 19:29:13 1.25
+++ loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2008/10/23 09:07:51 1.29
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonsubmissiontimeanalysis.pm,v 1.25 2006/05/01 19:29:13 albertel Exp $
+# $Id: lonsubmissiontimeanalysis.pm,v 1.29 2008/10/23 09:07:51 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -135,8 +135,10 @@ sub BuildSubmissionTimePage {
$r->print(&Apache::lonstathelpers::render_resource($resource));
$r->print('
');
$r->rflush();
- $r->print(&analyze_times($r,$resource->symb,\@Students,
- $current_problem->{'part'}));
+ if (@Students) {
+ $r->print(&analyze_times($r,$resource->symb,\@Students,
+ $current_problem->{'part'}));
+ }
}
$r->print('
'.&mt('Sections').' | '; - $Str .= ''.&mt('Enrollment Status').' | '; + $Str .= ''.&mt('Groups').' | '; + $Str .= ''.&mt('Access Status').' | '; $Str .= ''."\n"; + $Str .= &Apache::lonstatistics::GroupSelect('Group','multiple',4); + $Str .= ' | '; + # $Str .= ''; $Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,4); $Str .= ' | '; @@ -415,10 +423,12 @@ sub CreateInterface { $Str .= ''."\n"; $Str .= '
---|
' + .&mt('Status: [_1]', + '') + .'
'; + $Str .= ''; ## return $Str; }