--- loncom/interface/statistics/lonstathelpers.pm 2020/09/07 02:25:32 1.78 +++ loncom/interface/statistics/lonstathelpers.pm 2020/09/12 20:21:30 1.79 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.78 2020/09/07 02:25:32 raeburn Exp $ +# $Id: lonstathelpers.pm,v 1.79 2020/09/12 20:21:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -262,8 +262,8 @@ sub problem_selector { $seq_str .= (' 'x2). ''.&mt('view').''; $seq_str .= "". &Apache::loncommon::end_data_table_row()."\n"; - $rb_count++; } + $rb_count++; } } } @@ -290,6 +290,15 @@ sub problem_selector { } } $Str .= &Apache::loncommon::end_data_table().&Apache::loncommon::end_scrollbox()."\n"; + if (!$rb_count) { + if ($byres) { + $Str = '

'.&mt('No gradable problems found').'

'; + } elsif ($AcceptedResponseTypes eq '.') { + $Str = '

'.&mt('No problems found').'

'; + } else { + $Str = '

'.&mt('No analyzable problems found').'

'; + } + } return $Str; }